summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-28 14:38:36 +0000
committerKalle Valo <kvalo@codeaurora.org>2016-10-05 19:05:14 +0300
commitf38b7c2547537a8219d273e20eb3b88e6fc6b764 (patch)
tree7cd62c8863e073d13bf1510527b7fd8cca45de91 /drivers/net/wireless
parent03a1eabc3f54469abd4f1784182851b2e29630cc (diff)
downloadlinux-f38b7c2547537a8219d273e20eb3b88e6fc6b764.tar.bz2
wlcore: sdio: drop kfree for memory allocated with devm_kzalloc
It's not necessary to free memory allocated with devm_kzalloc and using kfree leads to a double free. Fixes: d776fc86b82f ("wlcore: sdio: Populate config firmware data") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ti/wlcore/sdio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
index a6e94b1a12cb..47fe7f96a242 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
@@ -391,7 +391,6 @@ static void wl1271_remove(struct sdio_func *func)
pm_runtime_get_noresume(&func->dev);
platform_device_unregister(glue->core);
- kfree(glue);
}
#ifdef CONFIG_PM