Re: [PATCH] atm: idt77252: Add missing `dma_map_error()`
From: Jakub Kicinski
Date: Mon Jun 23 2025 - 19:40:52 EST
On Thu, 19 Jun 2025 12:57:06 +0200 Thomas Fourier wrote:
> @@ -1857,6 +1859,8 @@ add_rx_skb(struct idt77252_dev *card, int queue,
> paddr = dma_map_single(&card->pcidev->dev, skb->data,
> skb_end_pointer(skb) - skb->data,
> DMA_FROM_DEVICE);
> + if (dma_mapping_error(&card->pcidev->dev, paddr))
> + goto outfree;
> IDT77252_PRV_PADDR(skb) = paddr;
>
> if (push_rx_skb(card, skb, queue)) {
Hm, you're missing undoing sb_pool_add()
Like in another patch from you -- either jump to a new label in between
the existing two which does the necessary unwind, or move the mapping
earlier, before we start adding the skb into the SW queue.
--
pw-bot: cr