From: Hillf Danton Date: Wed, 1 Dec 2010 00:18:12 +0000 (-0800) Subject: [SCSI] libfc: fix mem leak in fc_exch_recv_seq_resp() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8236554a27af870ecd1cd588d9558ccdc212037b;p=openwrt%2Fstaging%2Fblogic.git [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 Signed-off-by: Robert Love Signed-off-by: James Bottomley --- 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);