]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ibmasm: Replace kzalloc() + copy_from_user() with memdup_user_nul()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 5 Sep 2025 10:32:44 +0000 (12:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 14:00:54 +0000 (16:00 +0200)
commit0c82fd9609a1e4bf1db84b0fd56bc3b2773da179
tree6870c47c6fe6f387e76199908e3344585b3b11d2
parent5f8f84e286f11af4c954c14a57daffc80a1c3510
ibmasm: Replace kzalloc() + copy_from_user() with memdup_user_nul()

Replace kzalloc() followed by copy_from_user() with memdup_user_nul() to
improve and simplify remote_settings_file_write().

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250905103247.423840-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ibmasm/ibmasmfs.c