From: Larry Finger Date: Thu, 30 May 2013 21:21:47 +0000 (-0500) Subject: rtlwifi: Fix a false leak indication for PCI devices X-Git-Tag: v3.10-rc6~18^2^2^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87ccee46fabd235c2bac3652dee009e8f791dc10;p=karo-tx-linux.git 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 999ffc12578b..c97e9d327331 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -764,6 +764,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw) "can't alloc skb for rx\n"); goto done; } + kmemleak_not_leak(new_skb); pci_unmap_single(rtlpci->pdev, *((dma_addr_t *) skb->cb),