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)
commitf609a43dca2964a8a604ef554be92fa11c3b4c41
treee046bde3df86b0278f23f78f6a7aa1cbb0f0bb47
parente7570dfb635b0c89570852002c9f85dd1cf82ba1
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