diff options
author | Dan Carpenter <error27@gmail.com> | 2010-12-21 05:00:13 +0100 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-01-24 21:11:45 +0100 |
commit | 0dd386676497fb3097e6fbb3de6090c948c0df30 (patch) | |
tree | b0726f021b9c744fc950ac0112b01a65a736ae15 /drivers/net/wireless/wl12xx/spi.c | |
parent | wl12xx: remove redundant debugfs_remove_recursive() call (diff) | |
download | linux-0dd386676497fb3097e6fbb3de6090c948c0df30.tar.xz linux-0dd386676497fb3097e6fbb3de6090c948c0df30.zip |
wl12xx: use after free in debug code
If debugging is turned on, then wl1271_dump() dereferences a freed
variable.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/spi.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/spi.c b/drivers/net/wireless/wl12xx/spi.c index 46714910f98c..8f7ea2c7d567 100644 --- a/drivers/net/wireless/wl12xx/spi.c +++ b/drivers/net/wireless/wl12xx/spi.c @@ -110,9 +110,9 @@ static void wl1271_spi_reset(struct wl1271 *wl) spi_message_add_tail(&t, &m); spi_sync(wl_to_spi(wl), &m); - kfree(cmd); wl1271_dump(DEBUG_SPI, "spi reset -> ", cmd, WSPI_INIT_CMD_LEN); + kfree(cmd); } static void wl1271_spi_init(struct wl1271 *wl) |