Commit 40146189 authored by Grazvydas Ignotas's avatar Grazvydas Ignotas Committed by Greg Kroah-Hartman

wl1251: fix a memory leak in probe

commit aa679c36 upstream.

wl1251_sdio_probe() error path is missing wl1251_free_hw, add it.
Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
Acked-by: default avatarKalle Valo <kvalo@adurom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9276b6f4
......@@ -160,6 +160,7 @@ int wl1251_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id)
sdio_disable_func(func);
release:
sdio_release_host(func);
wl1251_free_hw(wl);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment