From: Hillf Danton Date: Wed, 1 Dec 2010 00:18:28 +0000 (-0800) Subject: [SCSI] libfc: fix mem leak in fc_seq_assign() X-Git-Tag: v2.6.38-rc1~27^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=530994d69e5b6b4eca2db4a21b6d945d13646053;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [SCSI] libfc: fix mem leak in fc_seq_assign() There is a typo cleaned, which triggers memory leakage. 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 46973d6..8bfb421 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c @@ -1274,7 +1274,7 @@ static struct fc_seq *fc_seq_assign(struct fc_lport *lport, struct fc_frame *fp) list_for_each_entry(ema, &lport->ema_list, ema_list) if ((!ema->match || ema->match(fp)) && - fc_seq_lookup_recip(lport, ema->mp, fp) != FC_RJT_NONE) + fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE) break; return fr_seq(fp); }