o Move initialization of ump from mp to the top of the function so that

it is defined whenm used in ufs_extattr_uepm_destroy(), fixing a panic
  due to a NULL pointer dereference.

Submitted by:	Wesley Morgan <morganw@chemicals.tacorp.com>
This commit is contained in:
Robert Watson 2000-10-06 15:31:28 +00:00
parent d7a4332c5d
commit ff435dcb91
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66753

View File

@ -772,7 +772,7 @@ ffs_unmount(mp, mntflags, p)
int mntflags;
struct proc *p;
{
register struct ufsmount *ump;
register struct ufsmount *ump = VFSTOUFS(mp);
register struct fs *fs;
int error, flags;
@ -794,7 +794,6 @@ ffs_unmount(mp, mntflags, p)
if ((error = ffs_flushfiles(mp, flags, p)) != 0)
return (error);
}
ump = VFSTOUFS(mp);
fs = ump->um_fs;
if (fs->fs_ronly == 0) {
fs->fs_clean = fs->fs_flags & FS_UNCLEAN ? 0 : 1;