Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit daf67ce8 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

iwlwifi: unlock on error path



We introduced a lock here in ff1ffb85 ("iwlwifi: fix dynamic
loading").  But we missed an error path which needs an unlock.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 211c17aa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -911,8 +911,10 @@ static void iwl_ucode_callback(const struct firmware *ucode_raw, void *context)
		const struct iwl_op_mode_ops *ops = op->ops;
		drv->op_mode = ops->start(drv->trans, drv->cfg, &drv->fw);

		if (!drv->op_mode)
		if (!drv->op_mode) {
			mutex_unlock(&iwlwifi_opmode_table_mtx);
			goto out_unbind;
		}
	} else {
		load_module = true;
	}