]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: skb leak in mesh_plink_frame_tx()
authorThomas Pedersen <thomas@cozybit.com>
Fri, 3 Aug 2012 19:21:35 +0000 (12:21 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 3 Aug 2012 19:34:29 +0000 (21:34 +0200)
commit7ec76cf56c03af5d1789451a7de1ca6af547e3a6
treee046bde3df86b0278f23f78f6a7aa1cbb0f0bb47
parentd68426d42dd9f6195e2ebd8e7120680d756b98b6
mac80211: skb leak in mesh_plink_frame_tx()

Although adding an IE is almost guaranteed to succeed since we already
accounted for its length while allocating the skb, we should still free
the skb in case of failure.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c