]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: scsi_debug: Use vcalloc() to simplify code
authorQianfeng Rong <rongqianfeng@vivo.com>
Wed, 6 Aug 2025 12:46:33 +0000 (20:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 20 Aug 2025 01:56:23 +0000 (21:56 -0400)
commit6b5da52a1825d600cdee1dd8bf90e95fa12620f0
tree979993833c2c9f3130a4bcf67c63dde20fa44687
parentdaedd69abfee3a871b3a8791ffe20b398e055b87
scsi: scsi_debug: Use vcalloc() to simplify code

Use vcalloc() instead of vmalloc() followed by bitmap_zero() to simplify
the function sdebug_add_store().

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/r/20250806124633.383426-3-rongqianfeng@vivo.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c