Re: [PATCH v2] scsi: hpsa: Fix memory leak in hpsa_undo_allocations_after_kdump_soft_reset()

From: Markus Elfring

Date: Wed Dec 31 2025 - 11:25:41 EST



> +++ b/drivers/scsi/hpsa.c
> @@ -8212,6 +8212,7 @@ static void hpsa_undo_allocations_after_kdump_soft_reset(struct ctlr_info *h)
> h->monitor_ctlr_wq = NULL;
> }
>
> + kfree(h->reply_map); /* init_one 1 */
> kfree(h); /* init_one 1 */
> }

I wonder about the alignment and relevance for these code comments.

Regards,
Markus