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: upstream/snapshot3+hdmi~4870^2~34^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ccee46fabd235c2bac3652dee009e8f791dc10;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 999ffc1..c97e9d3 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),