projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d776fc
)
wl1251: Fix memory leaks in SPI initialization
author
Grazvydas Ignotas
<
[email protected]
>
Sat, 16 Jun 2012 19:26:48 +0000
(22:26 +0300)
committer
John W. Linville
<
[email protected]
>
Wed, 20 Jun 2012 18:10:25 +0000
(14:10 -0400)
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]
>
drivers/net/wireless/ti/wl1251/spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ti/wl1251/spi.c
b/drivers/net/wireless/ti/wl1251/spi.c
index 87f6305bda2cc5ced7f6377da9a3a3f9a16b72a4..567660cd2fcd3f3ead3a5c82baa38f6eed6d3690 100644
(file)
--- a/
drivers/net/wireless/ti/wl1251/spi.c
+++ b/
drivers/net/wireless/ti/wl1251/spi.c
@@
-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)