HomeFreeBSD

FreeBSD: Fix potential boot panic with bad label

Description

FreeBSD: Fix potential boot panic with bad label

vdev_geom_read_pool_label() can leave NULL in configs. Check for it
and skip consistently when generating rootconf.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #14291

Details

Provenance
freqlabsAuthored on Dec 22 2022, 7:50 PM
GitHub <noreply@github.com>Committed on Dec 22 2022, 7:50 PM
Parents
rG018f26041d67: deadlock between spa_errlog_lock and dp_config_rwlock
Branches
Unknown
Tags
Unknown