diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-09-05 13:31:45 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2025-09-10 05:28:50 +0300 |
commit | 8791b07894ab75361195094828dc56b7ed449c36 (patch) | |
tree | 3e205163fffa591b0617c8530a1548986dbccaba /tools/testing/selftests/net/lib/py/utils.py | |
parent | 5cffc679ad1de542ef8a247b12283cbe57511fc8 (diff) | |
download | linux-8791b07894ab75361195094828dc56b7ed449c36.tar.xz |
scsi: scsi_debug: Replace kzalloc() + copy_from_user() with memdup_user_nul()
Replace kzalloc() followed by copy_from_user() with memdup_user_nul() to
improve and simplify sdebug_error_write().
No functional changes intended.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions