diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-10-31 00:46:43 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-11-12 10:00:17 -0800 |
| commit | 3e4b89e970365db7fe2c4171be06c0e88e3bcbe6 (patch) | |
| tree | 45637761facc4b9f5c4f74f22ccf8a4080b14904 /lib/sys_info.c | |
| parent | ded7d97442f0f5af25e942949ac304e025b85165 (diff) | |
nilfs2: replace vmalloc + copy_from_user with vmemdup_user
Replace vmalloc() followed by copy_from_user() with vmemdup_user() to
improve nilfs_ioctl_clean_segments() and nilfs_ioctl_set_suinfo(). Use
kvfree() to free the buffers created by vmemdup_user().
Use u64_to_user_ptr() instead of manually casting the pointers and
remove the obsolete 'out_free' label.
No functional changes intended.
Link: https://lkml.kernel.org/r/20251030154700.7444-1-konishi.ryusuke@gmail.com
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/sys_info.c')
0 files changed, 0 insertions, 0 deletions
