drivers: staging: wilc1000: Add check for SPI availability
authorChandra S Gorentla <csgorentla@gmail.com>
Tue, 15 Sep 2015 12:39:51 +0000 (18:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Sep 2015 13:47:05 +0000 (06:47 -0700)
commit7d05652c5ce812b4d1addd1a2733d20c912d528d
tree275f860b6cd5ddc1287721f9cf9d6d7faf56bec2
parent8fec2ee4fa58e57b835ab9bac67f04f091cf976d
drivers: staging: wilc1000: Add check for SPI availability

NULL pointer deference is observed in the wilc1000.ko module
with bus type SPI and when SPI is not ready.

Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c