[SCSI] libfc: fix mem leak in fc_seq_assign()
authorHillf Danton <dhillf@gmail.com>
Wed, 1 Dec 2010 00:18:28 +0000 (16:18 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:24:20 +0000 (12:24 -0600)
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>
drivers/scsi/libfc/fc_exch.c

index 46973d6618d0e3c985551499c3e5b1c3a4d1eed5..8bfb421fcdd66e18f1b7ada4064ecdd486790e62 100644 (file)
@@ -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);
 }