Re: [PATCH] scsi: scsi_debug: Replace kzalloc() + copy_from_user() with memdup_user_nul()

From: Bart Van Assche
Date: Fri Sep 05 2025 - 12:41:43 EST


On 9/5/25 3:31 AM, Thorsten Blum wrote:
Replace kzalloc() followed by copy_from_user() with memdup_user_nul() to
improve and simplify sdebug_error_write().
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>