]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: b43: fix Oops on card eject during transfer
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 6 Jan 2012 11:58:16 +0000 (12:58 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Jan 2012 19:40:50 +0000 (14:40 -0500)
commit31d643ea2ca953d319f7cc61e898a7ec1f735ce7
tree15e7011f8a11f0ade53f0704093abd596e6d2f42
parent81ba7c4afdc8bee68fcd66489528b6f6464befa1
wireless: b43: fix Oops on card eject during transfer

An Oops has once been observed, when the SDIO card had been ejected during
IO. The PC value shows, that the dev pointer in b43_op_stop() was NULL.

(I moved the NULL check before the lock, based upon a suggestion from
Julian Calaby <julian.calaby@gmail.com>. -- JWL)

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/main.c