From: Eliad Peller Date: Tue, 6 Dec 2011 10:15:07 +0000 (+0200) Subject: wl12xx: send testmode reply in wl1271_tm_cmd_interrogate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dbb5846db1f5df3619b927cc2a7dcaf65a38f1e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wl12xx: send testmode reply in wl1271_tm_cmd_interrogate wl1271_tm_cmd_interrogate creates a reply skb, but doesn't send it (and thus just leaks it). Add the missing cfg80211_testmode_reply() call. Signed-off-by: Eliad Peller Signed-off-by: Luciano Coelho --- diff --git a/drivers/net/wireless/wl12xx/testmode.c b/drivers/net/wireless/wl12xx/testmode.c index 2f9ebff2ded3..978cf2de713d 100644 --- a/drivers/net/wireless/wl12xx/testmode.c +++ b/drivers/net/wireless/wl12xx/testmode.c @@ -176,6 +176,9 @@ static int wl1271_tm_cmd_interrogate(struct wl1271 *wl, struct nlattr *tb[]) } NLA_PUT(skb, WL1271_TM_ATTR_DATA, sizeof(*cmd), cmd); + ret = cfg80211_testmode_reply(skb); + if (ret < 0) + goto out_free; out_free: kfree(cmd);