kernel-fxtec-pro1x/drivers/scsi/fcoe
Javed Hasan 15f15650ee scsi: fcoe: Memory leak fix in fcoe_sysfs_fcf_del()
[ Upstream commit e95b4789ff4380733006836d28e554dc296b2298 ]

In fcoe_sysfs_fcf_del(), we first deleted the fcf from the list and then
freed it if ctlr_dev was not NULL. This was causing a memory leak.

Free the fcf even if ctlr_dev is NULL.

Link: https://lore.kernel.org/r/20200729081824.30996-3-jhasan@marvell.com
Reviewed-by: Girish Basrur <gbasrur@marvell.com>
Reviewed-by: Santosh Vernekar <svernekar@marvell.com>
Reviewed-by: Saurav Kashyap <skashyap@marvell.com>
Reviewed-by: Shyam Sundar <ssundar@marvell.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-03 11:24:22 +02:00
..
fcoe.c scsi: fcoe: make use of fip_mode enum complete 2019-04-05 22:33:04 +02:00
fcoe.h
fcoe_ctlr.c scsi: fcoe: Memory leak fix in fcoe_sysfs_fcf_del() 2020-09-03 11:24:22 +02:00
fcoe_sysfs.c
fcoe_transport.c scsi: fcoe: make use of fip_mode enum complete 2019-04-05 22:33:04 +02:00
libfcoe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile