2013-05-30 21:21:49

by Larry Finger

[permalink] [raw]
Subject: [PATCH] rtlwifi: Fix a false leak indication for PCI devices

This false leak indication is avoided with a no-leak annotation to kmemleak.

Signed-off-by: Larry Finger <[email protected]>
---

John,

AFAIK, the false leak indication was not present before 3.10.

Please include it in the 3.10 stream.

Thanks,

Larry
---

Index: wireless-testing-save/drivers/net/wireless/rtlwifi/pci.c
===================================================================
--- wireless-testing-save.orig/drivers/net/wireless/rtlwifi/pci.c
+++ wireless-testing-save/drivers/net/wireless/rtlwifi/pci.c
@@ -764,6 +764,7 @@ static void _rtl_pci_rx_interrupt(struct
"can't alloc skb for rx\n");
goto done;
}
+ kmemleak_not_leak(new_skb);

pci_unmap_single(rtlpci->pdev,
*((dma_addr_t *) skb->cb),