Skip to content

Commit

Permalink
rtlwifi: Fix a false leak indication for PCI devices
Browse files Browse the repository at this point in the history
This false leak indication is avoided with a no-leak annotation to kmemleak.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Larry Finger authored and John W. Linville committed Jun 12, 2013
1 parent a805de4 commit 87ccee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 87ccee4

Please sign in to comment.