mac80211_hwsim: fix memory leak on netlink TX failure
authorBen Greear <greearb@candelatech.com>
Thu, 25 Sep 2014 21:22:18 +0000 (14:22 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 9 Oct 2014 07:29:44 +0000 (09:29 +0200)
commitb7bc9679e4dffe1b5ab75b4ea19e410b7253fa38
tree706005684100e0b66c032097d61b2effe52e1e13
parent35a9ad8af0bb0fa3525e6d0d20e32551d226f38e
mac80211_hwsim: fix memory leak on netlink TX failure

If the packet can't be delivered to userspace (at all or
quickly enough) then it can leak - fix that.

Signed-off-by: Ben Greear <greearb@candelatech.com>
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c