From: Leo Kim Date: Fri, 1 Apr 2016 08:44:17 +0000 (+0900) Subject: staging: wilc1000: add set to null after release firmware X-Git-Tag: v4.7-rc1~90^2~287 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3f626cf4a8445015296bb2cc2c98aa9ed619d7cc;p=karo-tx-linux.git staging: wilc1000: add set to null after release firmware This patch add set to null after release firmware. Signed-off-by: Leo Kim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 47c01320602b..48bbfa2b15ed 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1234,8 +1234,10 @@ void wilc_netdev_cleanup(struct wilc *wilc) vif[i] = netdev_priv(wilc->vif[i]->ndev); } - if (wilc && wilc->firmware) + if (wilc && wilc->firmware) { release_firmware(wilc->firmware); + wilc->firmware = NULL; + } if (wilc && (wilc->vif[0]->ndev || wilc->vif[1]->ndev)) { wilc_lock_timeout(wilc, &close_exit_sync, 5 * 1000);