wl12xx: Handle duplicate calling of remove interface
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>
Tue, 29 Mar 2011 13:43:50 +0000 (16:43 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:15 +0000 (16:49 +0300)
commit13026decf7b74d0908df034dc6dc86c2caaec939
tree8d5e0fa75e0de15dee632854aa20db3be41de4cf
parentc1b193eb6557279d037ab18c00ab628c6c78847f
wl12xx: Handle duplicate calling of remove interface

Because of the hardware recovery mechanism, its possible the
__wl1271_op_remove_interface is called twice. Currently, this leads to a
kernel crash even before a kernel WARNing can be issued.

Fix this.

Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/wl12xx.h