summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libfc/fc_exch.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2010-12-01 01:18:12 +0100
committerJames Bottomley <James.Bottomley@suse.de>2010-12-21 19:24:19 +0100
commit8236554a27af870ecd1cd588d9558ccdc212037b (patch)
treeed2ae4cd11eca91313721684c968e263e66d509a /drivers/scsi/libfc/fc_exch.c
parent[SCSI] libfc: fix NULL pointer dereference bug in fc_fcp_pkt_release (diff)
downloadlinux-8236554a27af870ecd1cd588d9558ccdc212037b.tar.xz
linux-8236554a27af870ecd1cd588d9558ccdc212037b.zip
[SCSI] libfc: fix mem leak in fc_exch_recv_seq_resp()
There seems that ep should get released, or it will no longer get freed. Signed-off-by: Hillf Danton <dhillf@gmail.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/libfc/fc_exch.c')
-rw-r--r--drivers/scsi/libfc/fc_exch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index 1dec59333ed6..d0df1b2faf25 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -1342,7 +1342,7 @@ static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)
}
if (ep->esb_stat & ESB_ST_COMPLETE) {
atomic_inc(&mp->stats.xid_not_found);
- goto out;
+ goto rel;
}
if (ep->rxid == FC_XID_UNKNOWN)
ep->rxid = ntohs(fh->fh_rx_id);