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-Url: https://git.stricted.de/?a=commitdiff_plain;h=87ccee46fabd235c2bac3652dee009e8f791dc10;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 999ffc12578..c97e9d32733 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),