diff options
author | Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp> | 2020-10-27 07:31:24 +0000 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-10-29 21:55:21 -0400 |
commit | af61bc1e33d2c0ec22612b46050f5b58ac56a962 (patch) | |
tree | 01973a49c191de428abd73825d88b90e86053190 /drivers/scsi/a100u2w.h | |
parent | fab09aaee80389a37d8ab49396afbb77fa86583a (diff) | |
download | linux-af61bc1e33d2c0ec22612b46050f5b58ac56a962.tar.bz2 |
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/20201027073125.14229-1-keitasuzuki.park@sslab.ics.keio.ac.jp
Tested-by: Don Brace <don.brace@microchip.com>
Acked-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Keita Suzuki <keitasuzuki.park@sslab.ics.keio.ac.jp>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/a100u2w.h')
0 files changed, 0 insertions, 0 deletions