wl12xx: Fix kernel crash related to hw recovery and interface shutdown
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Thu, 18 Nov 2010 13:19:02 +0000 (15:19 +0200)
committerLuciano Coelho <luciano.coelho@nokia.com>
Tue, 23 Nov 2010 08:29:29 +0000 (10:29 +0200)
commit6735329934e9acc1941a991ed6f6ad4be3e082a5
treee64ec0987e322592b0b6e8bf6cd7bb88c429be24
parentb84a7d3d9e7cd5a25f4fd32142cebdf4481a74a4
wl12xx: Fix kernel crash related to hw recovery and interface shutdown

It is possible that the op_remove_interface function  is invoked exactly at
the same time has hw recovery is started. In this case it is possible for the
interface to be already removed in the op_remove_interface call, which
currently leads to a kernel warning and a subsequent kernel crash.

Fix this by ignoring the op_remove_interface call if the interface is already
down at that point.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Tested-by: Tuomas Katila <ext-tuomas.2.katila@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/main.c