mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 16:30:53 +00:00
[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>
This commit is contained in:
parent
3c2c3bf23c
commit
530994d69e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user