From: Bob Copeland Date: Thu, 5 Feb 2015 13:45:43 +0000 (-0500) Subject: mac80211_hwsim: fix error handling in tx_frame_nl X-Git-Tag: omap-for-v4.1/wl12xx-dt~68^2~24^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2831e2007810b690f93a26128058a193eadf393;p=pandora-kernel.git 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 Signed-off-by: Johannes Berg --- Reading git-diff-tree failed