]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mwifiex: fix NULL pointer dereference error
authorWei-Ning Huang <wnhuang@chromium.org>
Wed, 30 Mar 2016 10:14:55 +0000 (18:14 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Apr 2016 16:40:29 +0000 (19:40 +0300)
commita5c92f0b6a88a8abe3840869425f1372591a762c
tree0ca107395245be27d041c7b96fd3a1ad8d45233b
parent001351881da1822b06e5d92e1fa2bf4920318e8c
mwifiex: fix NULL pointer dereference error

In mwifiex_enable_hs, we need to check if
priv->wdev.wiphy->wowlan_config is NULL before accessing its member.
This sometimes cause kernel panic when suspend/resume.

Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_ioctl.c