2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00

[SCSI] bnx2fc: hold tgt lock when calling cmd_release

Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
Bhanu Prakash Gollapudi 2011-07-27 11:32:10 -07:00 committed by James Bottomley
parent 72812ee0bd
commit bd4d5de8b9

View File

@ -752,7 +752,9 @@ retry_tmf:
rc = bnx2fc_init_mp_req(io_req); rc = bnx2fc_init_mp_req(io_req);
if (rc == FAILED) { if (rc == FAILED) {
printk(KERN_ERR PFX "Task mgmt MP request init failed\n"); printk(KERN_ERR PFX "Task mgmt MP request init failed\n");
spin_lock_bh(&tgt->tgt_lock);
kref_put(&io_req->refcount, bnx2fc_cmd_release); kref_put(&io_req->refcount, bnx2fc_cmd_release);
spin_unlock_bh(&tgt->tgt_lock);
goto tmf_err; goto tmf_err;
} }