diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-31 20:33:59 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-04 15:27:38 -0400 |
commit | bb1236115eb6fd9ab7563b6a8cfbcc6980eb3ff1 (patch) | |
tree | 3ce264c3ec056c4432ef304625e0f05542670bd6 /drivers/net | |
parent | 74dee2c3e1a3dc5cd6100f110f7935dece7a3505 (diff) | |
download | lwn-bb1236115eb6fd9ab7563b6a8cfbcc6980eb3ff1.tar.gz lwn-bb1236115eb6fd9ab7563b6a8cfbcc6980eb3ff1.zip |
net: wl12xx: do not use kfree'd memory
wl1271_dump() uses cmd after kfree(cmd). Move kfree() just after
wl1271_dump().
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_spi.c b/drivers/net/wireless/wl12xx/wl1271_spi.c index 96d25fb50495..4cb99c541e2a 100644 --- a/drivers/net/wireless/wl12xx/wl1271_spi.c +++ b/drivers/net/wireless/wl12xx/wl1271_spi.c @@ -160,9 +160,8 @@ static void wl1271_spi_init(struct wl1271 *wl) spi_message_add_tail(&t, &m); spi_sync(wl_to_spi(wl), &m); - kfree(cmd); - wl1271_dump(DEBUG_SPI, "spi init -> ", cmd, WSPI_INIT_CMD_LEN); + kfree(cmd); } #define WL1271_BUSY_WORD_TIMEOUT 1000 |