summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/renesas/sh_eth.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-03-23 14:45:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-10 17:38:00 +0300
commit7f2eb575e6b6f6b453123421e3f28ffcde32c241 (patch)
treedd45b20aae64c67de354a61cf64f3e762e16db33 /drivers/net/ethernet/renesas/sh_eth.c
parentbdd000c46edf2681f1654b7c43133125805653b9 (diff)
downloadlinux-7f2eb575e6b6f6b453123421e3f28ffcde32c241.tar.xz
modpost: do not make find_tosym() return NULL
[ Upstream commit 1102f9f85bf66b1a7bd6a40afb40efbbe05dfc05 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/renesas/sh_eth.c')
0 files changed, 0 insertions, 0 deletions