HomeFreeBSD

cam: Check if cam_simq_alloc fails for the xpt bus during module init

Description

cam: Check if cam_simq_alloc fails for the xpt bus during module init

This is very unlikely to fail (and if it does, CAM isn't going to work
regardless), but fail with an error rather than a gauranteed panic via
NULL pointer dereference.

PR: 276770
Reported by: Qiushi <w290680224@gmail.com>

Details

Provenance
jhbAuthored on Feb 9 2024, 7:53 PM
Parents
rGb377ff8110e3: pcib: Refine handling of resources allocated from bridge windows
Branches
Unknown
Tags
Unknown