diff options
Diffstat (limited to 'drivers/net/wireless/libertas/firmware.c')
-rw-r--r-- | drivers/net/wireless/libertas/firmware.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/firmware.c b/drivers/net/wireless/libertas/firmware.c index c0f9e7e862f6..51b92b5df119 100644 --- a/drivers/net/wireless/libertas/firmware.c +++ b/drivers/net/wireless/libertas/firmware.c | |||
@@ -53,6 +53,11 @@ static void main_firmware_cb(const struct firmware *firmware, void *context) | |||
53 | 53 | ||
54 | /* Firmware found! */ | 54 | /* Firmware found! */ |
55 | lbs_fw_loaded(priv, 0, priv->helper_fw, firmware); | 55 | lbs_fw_loaded(priv, 0, priv->helper_fw, firmware); |
56 | if (priv->helper_fw) { | ||
57 | release_firmware (priv->helper_fw); | ||
58 | priv->helper_fw = NULL; | ||
59 | } | ||
60 | release_firmware (firmware); | ||
56 | } | 61 | } |
57 | 62 | ||
58 | static void helper_firmware_cb(const struct firmware *firmware, void *context) | 63 | static void helper_firmware_cb(const struct firmware *firmware, void *context) |