diff options
| author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-28 10:38:36 -0400 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2016-10-05 12:05:14 -0400 |
| commit | f38b7c2547537a8219d273e20eb3b88e6fc6b764 (patch) | |
| tree | 7cd62c8863e073d13bf1510527b7fd8cca45de91 /drivers/net/wireless | |
| parent | 03a1eabc3f54469abd4f1784182851b2e29630cc (diff) | |
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.c | 1 |
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) | |||
| 391 | pm_runtime_get_noresume(&func->dev); | 391 | pm_runtime_get_noresume(&func->dev); |
| 392 | 392 | ||
| 393 | platform_device_unregister(glue->core); | 393 | platform_device_unregister(glue->core); |
| 394 | kfree(glue); | ||
| 395 | } | 394 | } |
| 396 | 395 | ||
| 397 | #ifdef CONFIG_PM | 396 | #ifdef CONFIG_PM |
