diff options
author | Hillf Danton <dhillf@gmail.com> | 2010-11-30 19:18:28 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:20 -0500 |
commit | 530994d69e5b6b4eca2db4a21b6d945d13646053 (patch) | |
tree | cbac6fca2e6996e97072524f1a9f18e0c53ddf44 /drivers/scsi/libfc/fc_exch.c | |
parent | 3c2c3bf23cbef8eed6cf815715d0bece5cb7b5ec (diff) |
[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>
Diffstat (limited to 'drivers/scsi/libfc/fc_exch.c')
-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 46973d6618d0..8bfb421fcdd6 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) | |||
1274 | 1274 | ||
1275 | list_for_each_entry(ema, &lport->ema_list, ema_list) | 1275 | list_for_each_entry(ema, &lport->ema_list, ema_list) |
1276 | if ((!ema->match || ema->match(fp)) && | 1276 | if ((!ema->match || ema->match(fp)) && |
1277 | fc_seq_lookup_recip(lport, ema->mp, fp) != FC_RJT_NONE) | 1277 | fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE) |
1278 | break; | 1278 | break; |
1279 | return fr_seq(fp); | 1279 | return fr_seq(fp); |
1280 | } | 1280 | } |