summaryrefslogtreecommitdiff
path: root/drivers/scsi/esas2r/esas2r_log.h
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2020-12-26 14:15:03 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2021-01-05 23:28:11 -0500
commit3b01d7ea4dae907d34fa0eeb3f17bacd714c6d0c (patch)
tree54494555266b1d0d6e434f2fa6b07288ee709dbe /drivers/scsi/esas2r/esas2r_log.h
parent39718fe7adb1a79f78be23f058299bc038cbe161 (diff)
scsi: scsi_debug: Fix memleak in scsi_debug_init()
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(). Link: https://lore.kernel.org/r/20201226061503.20050-1-dinghao.liu@zju.edu.cn Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esas2r/esas2r_log.h')
0 files changed, 0 insertions, 0 deletions