mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
wl1251: Fix memory leaks in SPI initialization
This patch fixes two memory leaks in the SPI initialization code. Patch based on old maemo patch by: Yuri Ershov <[email protected]> Signed-off-by: Grazvydas Ignotas <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
0d776fcdaf
commit
a859e4d659
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ static void wl1251_spi_reset(struct wl1251 *wl)
|
|||
spi_sync(wl_to_spi(wl), &m);
|
||||
|
||||
wl1251_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN);
|
||||
|
||||
kfree(cmd);
|
||||
}
|
||||
|
||||
static void wl1251_spi_wake(struct wl1251 *wl)
|
||||
|
|
@ -127,6 +129,8 @@ static void wl1251_spi_wake(struct wl1251 *wl)
|
|||
spi_sync(wl_to_spi(wl), &m);
|
||||
|
||||
wl1251_dump(DEBUG_SPI, "spi init -> ", cmd, WSPI_INIT_CMD_LEN);
|
||||
|
||||
kfree(cmd);
|
||||
}
|
||||
|
||||
static void wl1251_spi_reset_wake(struct wl1251 *wl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue