projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2c28de
)
staging: wilc1000: add set to null after release firmware
author
Leo Kim
<leo.kim@atmel.com>
Fri, 1 Apr 2016 08:44:17 +0000
(17:44 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 04:58:42 +0000
(21:58 -0700)
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>
drivers/staging/wilc1000/linux_wlan.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/linux_wlan.c
b/drivers/staging/wilc1000/linux_wlan.c
index
47c0132
..
48bbfa2
100644
(file)
--- 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);