diff options
author | Leo Kim <leo.kim@atmel.com> | 2016-04-01 17:44:17 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-28 21:58:42 -0700 |
commit | 3f626cf4a8445015296bb2cc2c98aa9ed619d7cc (patch) | |
tree | 62673b8fbb495ebca3397e464f6444c073ef30eb /drivers/staging/wilc1000 | |
parent | a2c28de5c09b29854abe5fd7448695d4da0bdb33 (diff) | |
download | op-kernel-dev-3f626cf4a8445015296bb2cc2c98aa9ed619d7cc.zip op-kernel-dev-3f626cf4a8445015296bb2cc2c98aa9ed619d7cc.tar.gz |
staging: wilc1000: add set to null after release firmware
This patch add set to null after release firmware.
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 47c0132..48bbfa2 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); |