summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-12-20 13:59:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 16:44:43 +0100
commit5f62af9fd20bea5e3b543cf69655c043cea298bb (patch)
tree394fc4f4bd8ae503a60f53a934c28707e90c2433 /include
parent99aa03f98ce56804f2e8936f9dabf8c4f117a661 (diff)
devtmpfs: Replace simple_strtoul with kstrtoint in mount_param
Replace simple_strtoul() with the recommended kstrtoint() for parsing the 'devtmpfs.mount=' boot parameter. Unlike simple_strtoul(), which returns an unsigned long, kstrtoint() converts the string directly to int and avoids implicit casting. Check the return value of kstrtoint() and reject invalid values. This adds error handling while preserving behavior for existing values, and removes use of the deprecated simple_strtoul() helper. The current code silently sets 'mount_dev = 0' if parsing fails, instead of leaving the default value (IS_ENABLED(CONFIG_DEVTMPFS_MOUNT)) unchanged. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20251220125930.76836-2-thorsten.blum@linux.dev Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions