Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

atm: idt77252: Use sb_pool_remove()

Replacing the manual pool remove with the dedicated function. This is
safer and more consistent with the rest of the code[1].

[1]; https://lore.kernel.org/all/20250625094013.GL1562@horms.kernel.org/

Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20260105212916.26678-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Thomas Fourier and committed by
Jakub Kicinski
8e7148b5 3b7a108c

+1 -3
+1 -3
drivers/atm/idt77252.c
··· 1844 1844 { 1845 1845 struct sk_buff *skb; 1846 1846 dma_addr_t paddr; 1847 - u32 handle; 1848 1847 1849 1848 while (count--) { 1850 1849 skb = dev_alloc_skb(size); ··· 1875 1876 skb_end_pointer(skb) - skb->data, DMA_FROM_DEVICE); 1876 1877 1877 1878 outpoolrm: 1878 - handle = IDT77252_PRV_POOL(skb); 1879 - card->sbpool[POOL_QUEUE(handle)].skb[POOL_INDEX(handle)] = NULL; 1879 + sb_pool_remove(card, skb); 1880 1880 1881 1881 outfree: 1882 1882 dev_kfree_skb(skb);