projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72812ee
)
[SCSI] bnx2fc: hold tgt lock when calling cmd_release
author
Bhanu Prakash Gollapudi
<
[email protected]
>
Wed, 27 Jul 2011 18:32:10 +0000
(11:32 -0700)
committer
James Bottomley
<
[email protected]
>
Thu, 28 Jul 2011 07:54:37 +0000
(11:54 +0400)
Signed-off-by: Bhanu Prakash Gollapudi <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/bnx2fc/bnx2fc_io.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/bnx2fc/bnx2fc_io.c
b/drivers/scsi/bnx2fc/bnx2fc_io.c
index 797b0051b6ff8750d0b203489c65ec7d5a345a32..7154c44fa2c98ac9e89ed7d0f6661988ca5822da 100644
(file)
--- a/
drivers/scsi/bnx2fc/bnx2fc_io.c
+++ b/
drivers/scsi/bnx2fc/bnx2fc_io.c
@@
-752,7
+752,9
@@
retry_tmf:
rc = bnx2fc_init_mp_req(io_req);
if (rc == FAILED) {
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);
+ spin_unlock_bh(&tgt->tgt_lock);
goto tmf_err;
}