vfs_unregister: fix error handling
Due to misplaced braces, an error from vfs_uninit() in the VFCF_SBDRY case was ignored. Reported by: Anton Rang <rang@acm.org> Reviewed by: Anton Rang <rang@acm.org>, markj MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D34375
This commit is contained in:
parent
f00ced06da
commit
1517b8d5a7
@ -547,14 +547,13 @@ vfs_unregister(struct vfsconf *vfc)
|
||||
if (vfc->vfc_vfsops_sd->vfs_uninit != NULL)
|
||||
error = vfc->vfc_vfsops_sd->vfs_uninit(vfsp);
|
||||
} else {
|
||||
if (vfc->vfc_vfsops->vfs_uninit != NULL) {
|
||||
if (vfc->vfc_vfsops->vfs_uninit != NULL)
|
||||
error = vfc->vfc_vfsops->vfs_uninit(vfsp);
|
||||
}
|
||||
if (error != 0) {
|
||||
vfsconf_unlock();
|
||||
return (error);
|
||||
}
|
||||
}
|
||||
TAILQ_REMOVE(&vfsconf, vfsp, vfc_list);
|
||||
maxtypenum = VFS_GENERIC;
|
||||
TAILQ_FOREACH(vfsp, &vfsconf, vfc_list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user