]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
wlcore: sdio: check for valid platform device data before suspend
authorEyal Reizer <eyalreizer@gmail.com>
Mon, 28 May 2018 08:36:42 +0000 (11:36 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 1 Mar 2019 13:20:35 +0000 (14:20 +0100)
commit0964c02d5856a4485a583392cb08b1a0a3397555
tree554e57bb22ec9d015ab2464eac31bf905f6415b8
parent95cf042f4557695049b63c2042dc7dd0caa9444e
wlcore: sdio: check for valid platform device data before suspend

BugLink: http://bugs.launchpad.net/bugs/1815234
[ Upstream commit 6e91d48371e79862ea2c05867aaebe4afe55a865 ]

the wl pointer can be null In case only wlcore_sdio is probed while
no WiLink module is successfully probed, as in the case of mounting a
wl12xx module while using a device tree file configured with wl18xx
related settings.
In this case the system was crashing in wl1271_suspend() as platform
device data is not set.
Make sure wl the pointer is valid before using it.

Signed-off-by: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/ti/wlcore/sdio.c