diff options
author | Hillf Danton <dhillf@gmail.com> | 2010-11-30 19:18:12 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:19 -0500 |
commit | 8236554a27af870ecd1cd588d9558ccdc212037b (patch) | |
tree | ed2ae4cd11eca91313721684c968e263e66d509a /drivers/scsi/libfc | |
parent | 80e736f8a37bebeb5bff18f2aec31caab4104b8b (diff) |
[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')
-rw-r--r-- | drivers/scsi/libfc/fc_exch.c | 2 |
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) | |||
1342 | } | 1342 | } |
1343 | if (ep->esb_stat & ESB_ST_COMPLETE) { | 1343 | if (ep->esb_stat & ESB_ST_COMPLETE) { |
1344 | atomic_inc(&mp->stats.xid_not_found); | 1344 | atomic_inc(&mp->stats.xid_not_found); |
1345 | goto out; | 1345 | goto rel; |
1346 | } | 1346 | } |
1347 | if (ep->rxid == FC_XID_UNKNOWN) | 1347 | if (ep->rxid == FC_XID_UNKNOWN) |
1348 | ep->rxid = ntohs(fh->fh_rx_id); | 1348 | ep->rxid = ntohs(fh->fh_rx_id); |