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

From: Markus Elfring

Date: Tue Dec 30 2025 - 07:09:28 EST



> +++ b/drivers/scsi/hpsa.c
> @@ -8212,6 +8212,8 @@ 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 */
> + h->reply_map = NULL; /* init_one 1 */

I find this reset statement redundant here.


> kfree(h); /* init_one 1 */
> }


Regards,
Markus