summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-09-18 19:24:47 +0300
committerChristian Brauner <brauner@kernel.org>2025-10-31 12:12:32 +0300
commitb2c43efc3c8d9cda34eb8421249d15e6fed4d650 (patch)
tree79af29e13ae947fd80d2832a43fe0020f26d3b8f /scripts/stackusage
parent3a8660878839faadb4f1a6dd72c3179c1df56787 (diff)
downloadlinux-b2c43efc3c8d9cda34eb8421249d15e6fed4d650.tar.xz
initrd: Replace simple_strtol with kstrtoint to improve ramdisk_start_setup
Replace simple_strtol() with the recommended kstrtoint() for parsing the 'ramdisk_start=' boot parameter. Unlike simple_strtol(), which returns a a long, kstrtoint() converts the string directly to an integer and avoids implicit casting. Check the return value of kstrtoint() and reject invalid values. This adds error handling while preserving existing behavior for valid values, and removes use of the deprecated simple_strtol() helper. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions