2022-03-14 16:35:33

by Jiasheng Jiang

[permalink] [raw]
Subject: Re: [PATCH] atm: eni: Add check for dma_map_single

On Sat, 12 Mar 2022 15:04:38 +0800 Jakub Kicinski wrote:
>> + if (dma_mapping_error(&eni_dev->pci_dev->dev, paddr))
>> + return enq_jam;
>
> Probably better to drop the packet if mapping fails.

Thanks, I will submit a v2 changing to "enq_jam".

Jiang