linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] staging: wilc1000: fix rmmod failure
@ 2015-11-25  2:59 Glen Lee
  2015-11-25  2:59 ` [PATCH 02/10] staging: wilc1000: wilc_wfi_cfgoperations.c: remove over-commenting Glen Lee
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Glen Lee @ 2015-11-25  2:59 UTC (permalink / raw)
  To: gregkh
  Cc: devel, linux-wireless, tony.cho, glen.lee, leo.kim, austin.shin,
	adel.noureldin, adham.abozaeid, Nicolas.FERRE

This patch fixes rmmod failure. wilc->firmware needs to be set to NULL because
it is used again to check firmware is released when module exit.

Fixes: 8b8ad7bc90bc ("staging: wilc1000: rename wilc_firmware in the struct wilc")
Signed-off-by: Glen Lee <glen.lee@atmel.com>
---
 drivers/staging/wilc1000/linux_wlan.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 7ccc9b0..92ca072 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -506,6 +506,7 @@ static int wilc1000_firmware_download(struct net_device *dev)
 	PRINT_D(INIT_DBG, "Freeing FW buffer ...\n");
 	PRINT_D(INIT_DBG, "Releasing firmware\n");
 	release_firmware(wilc->firmware);
+	wilc->firmware = NULL;
 
 	PRINT_D(INIT_DBG, "Download Succeeded\n");
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-25  2:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-25  2:59 [PATCH 01/10] staging: wilc1000: fix rmmod failure Glen Lee
2015-11-25  2:59 ` [PATCH 02/10] staging: wilc1000: wilc_wfi_cfgoperations.c: remove over-commenting Glen Lee
2015-11-25  2:59 ` [PATCH 03/10] staging: wilc1000: fixes blank lines aren't necessary brace Glen Lee
2015-11-25  2:59 ` [PATCH 04/10] staging: wilc1000: replace explicit NULL comparisons with ! Glen Lee
2015-11-25  2:59 ` [PATCH 05/10] staging: wilc1000: fixes potential null dereference 'wid.val' Glen Lee
2015-11-25  2:59 ` [PATCH 06/10] staging: wilc1000: wilc_init(): fixes inconsistent returns Glen Lee
2015-11-25  2:59 ` [PATCH 07/10] staging: wilc1000: wilc_deinit(): " Glen Lee
2015-11-25  2:59 ` [PATCH 08/10] staging: wilc1000: Handle_AddBASession: remove unused function Glen Lee
2015-11-25  2:59 ` [PATCH 09/10] staging: wilc1000: change if with else if Glen Lee
2015-11-25  2:59 ` [PATCH 10/10] staging: wilc1000: Handle_SetMulticastFilter(): fixes right shifting more than type allows Glen Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).