Re: [PATCH v3] scsi: hpsa: fix memory leak in hpsa_init_one

From: Martin K. Petersen
Date: Thu Oct 29 2020 - 22:20:29 EST


On Tue, 27 Oct 2020 07:31:24 +0000, Keita Suzuki wrote:

> When hpsa_scsi_add_host fails, h->lastlogicals is leaked since it lacks
> free in the error handler.
>
> Fix this by adding free when hpsa_scsi_add_host fails.

Applied to 5.10/scsi-fixes, thanks!

[1/1] scsi: hpsa: Fix memory leak in hpsa_init_one()
https://git.kernel.org/mkp/scsi/c/af61bc1e33d2

--
Martin K. Petersen Oracle Linux Engineering