diff options
| author | Haoyu Lu <hechushiguitu666@gmail.com> | 2026-04-10 21:37:34 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-04-27 15:12:58 +0200 |
| commit | 6b07cdff176bc5f8fef459b85a7e2ea09e68543f (patch) | |
| tree | df515b996dbc1324a337d7294e713d55cfa95a00 /include/linux/debugobjects.h | |
| parent | 01f9557233e3c04be5c6705864d390682f5d7236 (diff) | |
mtd: mtdoops: replace simple_strtoul with kstrtouint
Replace deprecated simple_strtoul with kstrtouint for better error
handling and type safety. The kstrtouint function provides stricter
validation, automatically rejecting inputs like "123abc" that
simple_strtoul would partially accept.
Using kstrtouint avoids unsigned long to int conversion and is more
appropriate for MTD device indices which are non-negative integers.
Signed-off-by: Haoyu Lu <hechushiguitu666@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
