net: wl12xx: do not use kfree'd memory
authorKulikov Vasiliy <segooon@gmail.com>
Sat, 31 Jul 2010 16:33:59 +0000 (20:33 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Aug 2010 19:27:38 +0000 (15:27 -0400)
commitbb1236115eb6fd9ab7563b6a8cfbcc6980eb3ff1
tree3ce264c3ec056c4432ef304625e0f05542670bd6
parent74dee2c3e1a3dc5cd6100f110f7935dece7a3505
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>
drivers/net/wireless/wl12xx/wl1271_spi.c