OSDN Git Service

rsi: Add null check for virtual interfaces in wowlan config
authorSanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
Fri, 11 May 2018 14:57:51 +0000 (20:27 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 May 2018 05:37:46 +0000 (08:37 +0300)
commit54b5172087aeae61150835c91e68f084a9644f1c
tree1a35c8f8017fae9bc1f1eb95b64772fec9b1ce1b
parent1204aa17f3b4f63e67ac9b7c9afa9496485969c5
rsi: Add null check for virtual interfaces in wowlan config

When the "poweroff" command is executed after wowlan enabled, we have
observed a system crash. In the system "poweroff" sequence, network-manager
is sent to inactive state by cleaning up the network interfaces, using
rsi_mac80211_remove_interface() and when driver tries to access those
network interfaces in rsi_wowlan_config() which was invoked by SDIO
shutdown, results in a crash. Added a NULL check before accessing the
network interfaces in rsi_wowlan_config().

Signed-off-by: Sanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Sushant Kumar Mishra <sushant.mishra@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c