On Mon, 2014-11-10 at 10:32 +0100, Johannes Berg wrote:
> You seem to have lost the nlmsg_free() in error cases.
Indeed. Will fix.
Patrik
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info
On Fri, 2014-11-07 at 10:21 +0200, Patrik Flykt wrote:
> -error:
> - nlmsg_free(skb);
> - return NULL;
> + return 0;
> }
>
> -static void hswim_mcast_new_radio(int id, struct genl_info *info,
> +static void hwsim_mcast_new_radio(int id, struct genl_info *info,
>
Factor out netlink message attribute appending in order to reuse it
with later code. As a result move netlink skb allocation to the calling
function.
Signed-off-by: Patrik Flykt
---
drivers/net/wireless/mac80211_hwsim.c | 60 +--
1 file changed, 30 insertions(+),