Skip to content

Commit

Permalink
net: wl12xx: do not use kfree'd memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kulikov Vasiliy authored and John W. Linville committed Aug 4, 2010
1 parent 74dee2c commit bb12361
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/wl12xx/wl1271_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb12361

Please sign in to comment.