staging: wilc1000: add check before performing operation on net_device
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 5 Feb 2019 07:15:48 +0000 (07:15 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Feb 2019 12:31:20 +0000 (13:31 +0100)
commit20c888becca9c678f2c0aa24d9afec758196bd41
treefe88e65fc8a0faa3a2b2c3ed8ab47978beda80d0
parentf2bf97cb952ee66e0999401fb43ed97310f2f3f2
staging: wilc1000: add check before performing operation on net_device

Before calling an operation on net_device check if that interface is
available.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c