aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
authorPetr Mladek <pmladek@suse.com>2026-05-26 11:11:30 +0200
committerPetr Mladek <pmladek@suse.com>2026-05-26 11:11:30 +0200
commit3334bbb60518582c3b430ce98f74d62cf9d5590d (patch)
tree63d3fb2462018a978999166ca1db445cb3104dc3 /lib
parented95cd0399e2cfbad528722dee80af47f21e9de2 (diff)
parentb09b6d0c404d62480dbc23865c763c63598511f5 (diff)
downloadlinux-next-history-3334bbb60518582c3b430ce98f74d62cf9d5590d.tar.gz
Merge branch 'for-7.2' into for-next
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 31baec7acae4f..6528182d3d990 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -2362,13 +2362,13 @@ static int __init hash_pointers_mode_parse(char *str)
if (!str) {
pr_warn("Hash pointers mode empty; falling back to auto.\n");
hash_pointers_mode = HASH_PTR_AUTO;
- } else if (strncmp(str, "auto", 4) == 0) {
+ } else if (strcmp(str, "auto") == 0) {
pr_info("Hash pointers mode set to auto.\n");
hash_pointers_mode = HASH_PTR_AUTO;
- } else if (strncmp(str, "never", 5) == 0) {
+ } else if (strcmp(str, "never") == 0) {
pr_info("Hash pointers mode set to never.\n");
hash_pointers_mode = HASH_PTR_NEVER;
- } else if (strncmp(str, "always", 6) == 0) {
+ } else if (strcmp(str, "always") == 0) {
pr_info("Hash pointers mode set to always.\n");
hash_pointers_mode = HASH_PTR_ALWAYS;
} else {