When DEBUG_SPI is included in the debug log level wl1271_spi_reset()
will dump the already freed memory instead of the SPI buffer.
This bug was spotted by the semantic patch tool coccinelle using the
script found at scripts/coccinelle/free/kfree.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Mathias Krause <redacted>
---
drivers/net/wireless/wl12xx/spi.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
From: John W. Linville <hidden> Date: 2011-01-31 20:00:18
On Sun, Jan 30, 2011 at 11:29:47AM +0100, Mathias Krause wrote:
When DEBUG_SPI is included in the debug log level wl1271_spi_reset()
will dump the already freed memory instead of the SPI buffer.
This bug was spotted by the semantic patch tool coccinelle using the
script found at scripts/coccinelle/free/kfree.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Mathias Krause <redacted>
Luca, I'll go ahead and apply this one directly to wireless-2.6.
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
On Mon, 2011-01-31 at 20:47 +0100, John W. Linville wrote:
On Sun, Jan 30, 2011 at 11:29:47AM +0100, Mathias Krause wrote:
quoted
When DEBUG_SPI is included in the debug log level wl1271_spi_reset()
will dump the already freed memory instead of the SPI buffer.
This bug was spotted by the semantic patch tool coccinelle using the
script found at scripts/coccinelle/free/kfree.cocci.
More information about semantic patching is available at
http://coccinelle.lip6.fr/
Signed-off-by: Mathias Krause <redacted>
Luca, I'll go ahead and apply this one directly to wireless-2.6.