Commit 2892d9c2 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

be2net: add unlock on error path

The unlock accidentally got removed from the error path in dd131e76:
"be2net: Bug fix to avoid disabling bottom half during firmware upgrade."
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarSarveshwar Bandi <sarveshwarb@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5daf47bb
...@@ -1429,7 +1429,7 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd, ...@@ -1429,7 +1429,7 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd,
wrb = wrb_from_mccq(adapter); wrb = wrb_from_mccq(adapter);
if (!wrb) { if (!wrb) {
status = -EBUSY; status = -EBUSY;
goto err; goto err_unlock;
} }
req = cmd->va; req = cmd->va;
sge = nonembedded_sgl(wrb); sge = nonembedded_sgl(wrb);
...@@ -1457,7 +1457,10 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd, ...@@ -1457,7 +1457,10 @@ int be_cmd_write_flashrom(struct be_adapter *adapter, struct be_dma_mem *cmd,
else else
status = adapter->flash_status; status = adapter->flash_status;
err: return status;
err_unlock:
spin_unlock_bh(&adapter->mcc_lock);
return status; return status;
} }
......
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