HomeFreeBSD

preload_search_info: make sure mod is set

Description

preload_search_info: make sure mod is set

Add a check to preload_search_info to make sure mod is set. Most of the
callers of preload_search_info don't check that the mod parameter is
set, which can cause page faults. While at it, remove some now unnecessary
checks before calling preload_search_info.

Sponsored by: Citrix Systems R&D
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D3440

Details

Provenance
roygerAuthored on
Reviewer
kib
Differential Revision
D3440: metadata parser: add a check for invalid values
Parents
rS286999: xen: allow disabling PV disks and nics
Branches
Unknown
Tags
Unknown