iwlwifi: remove module loading failure message
authorJohannes Berg <johannes.berg@intel.com>
Tue, 28 Feb 2017 21:45:25 +0000 (22:45 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 19:50:43 +0000 (22:50 +0300)
When CONFIG_DEBUG_TEST_DRIVER_REMOVE is set, iwlwifi crashes
when the opmode module cannot be loaded, due to completing
the completion before using drv->dev, which can then already
be freed.

Fix this by removing the (fairly useless) message. Moving the
completion later causes a deadlock instead, so that's not an
option.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-drv.c

index 98a03a4615d64a013752ab905529d1260633b4e8..5cfacb0bca84df8fa603aafa44ad281af5e04fd3 100644 (file)
@@ -1494,7 +1494,7 @@ static void iwl_req_fw_callback(const struct firmware *ucode_raw, void *context)
         * or hangs loading.
         */
        if (load_module) {
-               err = request_module("%s", op->name);
+               request_module("%s", op->name);
 #ifdef CONFIG_IWLWIFI_OPMODE_MODULAR
                if (err)
                        IWL_ERR(drv,