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

iwlwifi: missing unlock on error path

We should unlock here instead of returning -EINVAL directly.
Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarJohn W. Linville <>
parent 9011cd25
......@@ -3009,14 +3009,17 @@ static int iwl_mac_offchannel_tx_cancel_wait(struct ieee80211_hw *hw)
if (!priv->_agn.offchan_tx_skb)
return -EINVAL;
if (!priv->_agn.offchan_tx_skb) {
ret = -EINVAL;
goto unlock;
priv->_agn.offchan_tx_skb = NULL;
ret = iwl_scan_cancel_timeout(priv, 200);
if (ret)
ret = -EIO;
return ret;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment