summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBhanu Prakash Gollapudi <bprakash@broadcom.com>2011-08-05 04:38:38 +0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-27 18:35:28 +0400
commitb65d457913d1c0644394287d5d834373f42fb99a (patch)
tree53769091fffa63ee9e20480fcfa575e3b4ddb621 /drivers
parente9a5289ca3bb2d3e2a8f9e464eeb97b076dcb0d1 (diff)
downloadlinux-b65d457913d1c0644394287d5d834373f42fb99a.tar.xz
[SCSI] bnx2fc: Remove erroneous kref_get on IO request
During sequence cleanup, an additional reference for an IO has been taken. Because of this, the IO is never released into the free list. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c
index 6cc3789075bc..cb1791cfc509 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_io.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_io.c
@@ -1251,7 +1251,6 @@ void bnx2fc_process_seq_cleanup_compl(struct bnx2fc_cmd *seq_clnp_req,
seq_clnp_req->xid);
goto free_cb_arg;
}
- kref_get(&orig_io_req->refcount);
spin_unlock_bh(&tgt->tgt_lock);
rc = bnx2fc_send_srr(orig_io_req, offset, r_ctl);