diff options
author | Javed Hasan <jhasan@marvell.com> | 2020-07-29 01:18:24 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-08-04 20:56:56 -0400 |
commit | e95b4789ff4380733006836d28e554dc296b2298 (patch) | |
tree | 055493c6a9797f80129039559bb1156b55a6b21f /drivers/scsi/libfc | |
parent | a8ac78357d9b71a5608c609094ad3b114a46ccd4 (diff) | |
download | linux-e95b4789ff4380733006836d28e554dc296b2298.tar.gz linux-e95b4789ff4380733006836d28e554dc296b2298.tar.bz2 linux-e95b4789ff4380733006836d28e554dc296b2298.zip |
scsi: fcoe: Memory leak fix in fcoe_sysfs_fcf_del()
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>
Diffstat (limited to 'drivers/scsi/libfc')
0 files changed, 0 insertions, 0 deletions