summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-12-16 15:52:37 +0100
committerChristian Brauner <brauner@kernel.org>2025-12-24 13:49:36 +0100
commitb29a0a37f46bbfd2a36eff73eb66249d7baaf71a (patch)
tree7cb5ce9212a7ae3fca895c8a3f7b44089d5d1e89 /include/linux
parent63ad216fbfe2240da67233e0a0d10af8a12f7bde (diff)
dcache: Replace simple_strtoul with kstrtoul in set_dhash_entries
Replace simple_strtoul() with the recommended kstrtoul() for parsing the 'dhash_entries=' boot parameter. Check the return value of kstrtoul() and reject invalid values. This adds error handling while preserving behavior for existing values, and removes use of the deprecated simple_strtoul() helper. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20251216145236.44520-2-thorsten.blum@linux.dev Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions