]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Fix potential boot panic with bad label
authorRyan Moeller <ryan@iXsystems.com>
Thu, 22 Dec 2022 19:50:09 +0000 (14:50 -0500)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2022 19:50:09 +0000 (11:50 -0800)
commitdc8c2f615852cb79d3c4cae6c1fb738c7f4a793c
tree394d527fe1db2cd5bc601e3e836fc021ec02f176
parent018f26041d67447de28c293c35e1f664ce3c1abb
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
module/os/freebsd/zfs/spa_os.c