summaryrefslogtreecommitdiff
path: root/drivers/phy/eswin/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorKaitao Cheng <chengkaitao@kylinos.cn>2026-05-19 21:01:17 +0800
committerPetr Mladek <pmladek@suse.com>2026-05-26 11:06:12 +0200
commitb09b6d0c404d62480dbc23865c763c63598511f5 (patch)
treeaa1cd8e6584dfe997a79502a1da4a6a616ac3215 /drivers/phy/eswin/git@git.tavy.me:linux.git
parent4d56efe69decb086796b68826aad2a4eeb9b788d (diff)
lib/vsprintf: Require exact hash_pointers mode matches
hash_pointers= accepts a small set of mode strings, but the parser uses strncmp() with the length of each valid mode. That accepts values with trailing garbage, such as hash_pointers=autobots or hash_pointers=nevermind, as valid aliases for auto and never. Use strcmp() so that only the documented mode strings are accepted. Invalid values will continue to fall back to auto through the existing unknown-mode path. Signed-off-by: Kaitao Cheng <chengkaitao@kylinos.cn> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260519130117.48097-1-kaitao.cheng@linux.dev Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions