Browse Source

[SCSI] libfc: fix mem leak in fc_seq_assign()

There is a typo cleaned, which triggers memory leakage.

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>
Hillf Danton 14 years ago
parent
commit
530994d69e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/scsi/libfc/fc_exch.c

+ 1 - 1
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)
 	list_for_each_entry(ema, &lport->ema_list, ema_list)
 		if ((!ema->match || ema->match(fp)) &&
 		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;
 			break;
 	return fr_seq(fp);
 	return fr_seq(fp);
 }
 }