mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
staging: wilc1000: fix rmmod failure
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: 8b8ad7bc90 ("staging: wilc1000: rename wilc_firmware in the struct wilc")
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c2ba8b2bc2
commit
6f72ed75e5
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user