Re: [PATCH] [v2] scsi: scsi_debug: Fix memleak in scsi_debug_init

From: Martin K. Petersen
Date: Thu Jan 07 2021 - 23:20:40 EST


On Sat, 26 Dec 2020 14:15:03 +0800, Dinghao Liu wrote:

> When sdeb_zbc_model does not match BLK_ZONED_NONE,
> BLK_ZONED_HA or BLK_ZONED_HM, we should free sdebug_q_arr
> to prevent memleak. Also there is no need to execute
> sdebug_erase_store() on failure of sdeb_zbc_model_str().

Applied to 5.11/scsi-fixes, thanks!

[1/1] scsi: scsi_debug: Fix memleak in scsi_debug_init
https://git.kernel.org/mkp/scsi/c/3b01d7ea4dae

--
Martin K. Petersen Oracle Linux Engineering