Re: [PATCH] mac80211_hwsim: fix error handling in tx_frame_nl

2015-02-24 Thread Johannes Berg
On Thu, 2015-02-05 at 08:45 -0500, Bob Copeland wrote: > 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

[PATCH] mac80211_hwsim: fix error handling in tx_frame_nl

2015-02-05 Thread Bob Copeland
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