Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b65d4579 authored by Bhanu Prakash Gollapudi's avatar Bhanu Prakash Gollapudi Committed by James Bottomley
Browse files

[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: default avatarBhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent e9a5289c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);