OSDN Git Service

rsi: fix null pointer dereference during rsi_shutdown()
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Wed, 29 Jan 2020 13:02:59 +0000 (14:02 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 12 Feb 2020 16:19:14 +0000 (18:19 +0200)
commit16bbc3eb83728c03138191a5d23d84d38175fa26
tree5ad883d650ff4d31b6bf5051e2165c9dcc2af149
parent8299adec99b29f341f0ee4269f1ce70ca8508e78
rsi: fix null pointer dereference during rsi_shutdown()

Appearently the hw pointer can be NULL while the module is loaded and
in that case rsi_shutdown() crashes due to the unconditional dereference.

Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio.c