Hi,

>  
> +     dma_set_coherent_mask(&fep->pdev->dev, DMA_BIT_MASK(32));
> +
>       for (i = 0; i < fep->num_tx_queues; i++) {
>               txq = kzalloc(sizeof(*txq), GFP_KERNEL);
>               if (!txq) {

dma_set_coherent_mask() can fail, so the return value should be checked and
a failure be handled accordingly.

Regards,
Lino

Reply via email to