mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
UBSAN: fix typo in format string
handle_object_size_mismatch() used %pk to format a kernel pointer with pr_err(). This seemed to be a misspelling for %pK, but using this to format a kernel pointer does not make much sence here. Therefore use %p instead, like in handle_missaligned_access(). Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Nicolas Iooss <[email protected]> Acked-by: Andrey Ryabinin <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
9b24fef9f0
commit
901d805c33
1 changed files with 1 additions and 1 deletions
|
|
@ -308,7 +308,7 @@ static void handle_object_size_mismatch(struct type_mismatch_data *data,
|
|||
return;
|
||||
|
||||
ubsan_prologue(&data->location, &flags);
|
||||
pr_err("%s address %pk with insufficient space\n",
|
||||
pr_err("%s address %p with insufficient space\n",
|
||||
type_check_kinds[data->type_check_kind],
|
||||
(void *) ptr);
|
||||
pr_err("for an object of type %s\n", data->type->type_name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue