]> git.baikalelectronics.ru Git - kernel.git/commit
libertas: fix invalid access
authorSven Neumann <s.neumann@raumfeld.com>
Wed, 24 Nov 2010 16:02:00 +0000 (16:02 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Nov 2010 19:41:27 +0000 (14:41 -0500)
commit26ccc4b22ce7758b5b759fd8f76d1ad969503d88
tree26911c901e58af22b94c4e0b6539ada0f8194589
parent3e64f4332033c162fdcd46df69be620830566cb8
libertas: fix invalid access

card->priv must not be accessed after lbs_remove_card() was called
as lbs_remove_card() frees card->priv via free_netdev().

For libertas_sdio this is a regression introduced by badccc16648de.
The correct fix to the issue described there is simply to remove the
assignment. This flag is set at the appropriate time inside
lbs_remove_card anyway.

Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_sdio.c
drivers/net/wireless/libertas/if_spi.c