mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 01:24:33 +00:00
wl1251: fix a memory leak in probe
wl1251_sdio_probe() error path is missing wl1251_free_hw, add it. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Acked-by: Kalle Valo <kvalo@adurom.com> Cc: stable@kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
7d47618a2a
commit
aa679c3675
@ -259,6 +259,7 @@ disable:
|
|||||||
sdio_disable_func(func);
|
sdio_disable_func(func);
|
||||||
release:
|
release:
|
||||||
sdio_release_host(func);
|
sdio_release_host(func);
|
||||||
|
wl1251_free_hw(wl);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user