diff options
author | Keita Suzuki <[email protected]> | 2020-10-27 07:31:24 +0000 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-10-29 21:55:21 -0400 |
commit | af61bc1e33d2c0ec22612b46050f5b58ac56a962 (patch) | |
tree | 01973a49c191de428abd73825d88b90e86053190 /scripts/gdb/linux/config.py | |
parent | fab09aaee80389a37d8ab49396afbb77fa86583a (diff) |
scsi: hpsa: Fix memory leak in hpsa_init_one()
When hpsa_scsi_add_host() fails, h->lastlogicals is leaked since it is
missing a free() in the error handler.
Fix this by adding free() when hpsa_scsi_add_host() fails.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Don Brace <[email protected]>
Acked-by: Don Brace <[email protected]>
Signed-off-by: Keita Suzuki <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions