summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-18 17:08:10 +0200
committerMike Marshall <hubcap@omnibond.com>2025-09-30 10:23:24 -0400
commit11f6bce77e27e82015a0d044e6c1eec8b139831a (patch)
treecb9ca304f5b583ad4d39356fb93c760bf107bfdc /scripts/patch-kernel
parent025e880759c279ec64d0f754fe65bf45961da864 (diff)
fs/orangefs: Replace kzalloc + copy_from_user with memdup_user_nul
Replace kzalloc() followed by copy_from_user() with memdup_user_nul() to simplify and improve orangefs_debug_write(). Allocate only 'count' bytes instead of the maximum size ORANGEFS_MAX_DEBUG_STRING_LEN, and set 'buf' to NULL to ensure kfree(buf) still works. No functional changes intended. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions