diff options
| author | Javed Hasan <[email protected]> | 2020-07-29 01:18:24 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-08-04 20:56:56 -0400 |
| commit | e95b4789ff4380733006836d28e554dc296b2298 (patch) | |
| tree | 055493c6a9797f80129039559bb1156b55a6b21f /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | a8ac78357d9b71a5608c609094ad3b114a46ccd4 (diff) | |
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/[email protected]
Reviewed-by: Girish Basrur <[email protected]>
Reviewed-by: Santosh Vernekar <[email protected]>
Reviewed-by: Saurav Kashyap <[email protected]>
Reviewed-by: Shyam Sundar <[email protected]>
Signed-off-by: Javed Hasan <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions