mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Skip the smap sysctl instead of panicing if no kernel metadata can be
found. Submitted by: bde MFC after: 3 days
This commit is contained in:
parent
4f8c17ab35
commit
39d22d86ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273871
@ -3428,6 +3428,8 @@ smap_sysctl_handler(SYSCTL_HANDLER_ARGS)
|
||||
kmdp = preload_search_by_type("elf kernel");
|
||||
if (kmdp == NULL)
|
||||
kmdp = preload_search_by_type("elf32 kernel");
|
||||
if (kmdp == NULL)
|
||||
return (0);
|
||||
smapbase = (struct bios_smap *)preload_search_info(kmdp,
|
||||
MODINFO_METADATA | MODINFOMD_SMAP);
|
||||
if (smapbase == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user