mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
x86/retpoline: Fix crash printing warning
The first argument of WARN() is a condition, so this will use "addr"
as the format string and possibly crash.
Fixes: 3b6c1747da ("x86/retpoline: Add SKL retthunk retpolines")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/Y1gBoUZrRK5N%2FlCB@kili/
This commit is contained in:
committed by
Dave Hansen
parent
bd19461144
commit
ae25e00ba8
@@ -418,7 +418,7 @@ clang_jcc:
|
||||
break;
|
||||
|
||||
default:
|
||||
WARN("%pS %px %*ph\n", addr, addr, 6, addr);
|
||||
WARN(1, "%pS %px %*ph\n", addr, addr, 6, addr);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user