]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Under UFS/FFS the VFS_ROOT() function will return an error if the inode
authormckusick <mckusick@FreeBSD.org>
Sat, 15 Dec 2018 19:04:50 +0000 (19:04 +0000)
committermckusick <mckusick@FreeBSD.org>
Sat, 15 Dec 2018 19:04:50 +0000 (19:04 +0000)
commitafd5ac8b6228f152ae3b78bdfee639916fad5d2d
treebf9073b6af26a3f2edcd0fd4653c235c4e064460
parentbfbf739aad507d8e1f4f78a8cb4760c2731a043b
Under UFS/FFS the VFS_ROOT() function will return an error if the inode
check-hash fails. Panic'ing is not an appropriate response. So, check
for an error return from VFS_ROOT() and when an error is reported,
unwind and return the error.

Reported by:  Gary Jennejohn (gj)
Sponsored by: Netflix
sys/kern/vfs_mount.c