]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix error handling in tx_frame_nl
authorBob Copeland <me@bobcopeland.com>
Thu, 5 Feb 2015 13:45:43 +0000 (08:45 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Feb 2015 09:49:47 +0000 (10:49 +0100)
commit963ce173b62acaee76d5ac6a6759c48fc8182d2b
treee434484749d21bc7da4aa1d87ca4587c9c7dbfd0
parent99d962ac6098d5e9bb8ecb7dc50a36abe9fc5d27
mac80211_hwsim: fix error handling in tx_frame_nl

Correct two problems with the error handling when using the netlink
forwarding API: first, the netlink skb is never freed if nla_put()
fails; and second, genlmsg_unicast() can fail if the netlink socket
is full.  In the latter case, the corresponding data skb is not counted
as a drop and userspace programs like wmediumd will see TCP stalls
due to lost packets.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c