diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2024-03-23 12:45:11 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-03-28 03:04:26 +0100 |
commit | 1102f9f85bf66b1a7bd6a40afb40efbbe05dfc05 (patch) | |
tree | cb7d19bb1d3cd8d9380c12c07f35c0f9162a2924 /mm | |
parent | export.h: remove include/asm-generic/export.h (diff) | |
download | linux-1102f9f85bf66b1a7bd6a40afb40efbbe05dfc05.tar.xz linux-1102f9f85bf66b1a7bd6a40afb40efbbe05dfc05.zip |
modpost: do not make find_tosym() return NULL
As mentioned in commit 397586506c3d ("modpost: Add '.ltext' and
'.ltext.*' to TEXT_SECTIONS"), modpost can result in a segmentation
fault due to a NULL pointer dereference in default_mismatch_handler().
find_tosym() can return the original symbol pointer instead of NULL
if a better one is not found.
This fixes the reported segmentation fault.
Fixes: a23e7584ecf3 ("modpost: unify 'sym' and 'to' in default_mismatch_handler()")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions