Jesper Juhl 74b8cc3d59 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>
2012-01-16 15:01:15 -05:00
..
2011-12-14 02:39:30 -05:00
2011-12-16 15:07:28 -05:00
2011-03-17 11:59:32 +11:00
2011-12-11 18:25:16 -05:00
2011-11-26 15:57:36 -05:00
2011-09-16 19:20:20 -04:00
2012-01-12 20:05:28 -08:00
2011-12-16 15:49:52 -05:00
2010-10-15 15:53:27 +02:00