diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-01-14 21:52:17 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-16 21:01:15 +0100 |
commit | 74b8cc3d592e5e884123eb99960a9f064223eaab (patch) | |
tree | 293597e27723e538e60d5fa734de152070b9e136 /drivers | |
parent | ath9k_hw: fix interpretation of the rx KeyMiss flag (diff) | |
download | linux-74b8cc3d592e5e884123eb99960a9f064223eaab.tar.xz linux-74b8cc3d592e5e884123eb99960a9f064223eaab.zip |
Net, mac80211: Fix resource leak in ieee80211_rx_h_mesh_fwding()
We may leak the 'fwd_skb' we skb_copy() in ieee80211_rx_h_mesh_fwding() if
we take the 'else' branch in the 'if' statement just below. If we take
that branch we'll end up returning from the function and since we've not
assigned 'fwd_skb' to anything at that point, we leak it when the variable
goes out of scope.
The simple fix seems to be to just kfree_skb(fwd_skb); just before we
return. That is what this patch does.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions