summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorCosta Shulyupin <costa.shul@redhat.com>2026-01-12 21:26:41 +0200
committerTomas Glozar <tglozar@redhat.com>2026-01-13 08:32:52 +0100
commit6ea8a206108fe8b5940c2797afc54ae9f5a7bbdd (patch)
tree5ddb1c7460a5d3ba139174667a19428bf06f76a8 /drivers/mtd
parentfb8b8183208d8efe824e8d2c73fb1ab5ad1191fd (diff)
rtla: Fix parse_cpu_set() bug introduced by strtoi()
The patch 'Replace atoi() with a robust strtoi()' introduced a bug in parse_cpu_set(), which relies on partial parsing of the input string. The function parses CPU specifications like '0-3,5' by incrementing a pointer through the string. strtoi() rejects strings with trailing characters, causing parse_cpu_set() to fail on any CPU list with multiple entries. Restore the original use of atoi() in parse_cpu_set(). Fixes: 7e9dfccf8f11 ("rtla: Replace atoi() with a robust strtoi()") Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Link: https://lore.kernel.org/r/20260112192642.212848-2-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions