From ceedd58536d2dcf277223f458a33a30a8d5c7d21 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 16 Nov 1997 21:50:10 +0000 Subject: [PATCH] PR/4394: Rick Byers: MSDOSFS_DEBUG kernel panics during mount. --- sys/msdosfs/msdosfs_vfsops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index b467ddf45140..88c3f7ba719d 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: msdosfs_vfsops.c,v 1.49 1997/11/16 21:47:34 christos Exp $ */ +/* $NetBSD: msdosfs_vfsops.c,v 1.50 1997/11/16 21:50:10 christos Exp $ */ /*- * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. @@ -345,7 +345,7 @@ msdosfs_mount(mp, path, data, ndp, p) &size); bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size); #ifdef MSDOSFS_DEBUG - printf("msdosfs_mount(): mp %p, pmp %p, inusemap %p\n", mp, pmp, pmp->pm_inusemap); + printf("msdosfs_mount(): mp %p, pmp %p\n", mp, pmp); #endif return (0); } @@ -784,12 +784,12 @@ msdosfs_root(mp, vpp) struct denode *ndep; int error; + if ((error = deget(pmp, MSDOSFSROOT, MSDOSFSROOT_OFS, &ndep)) != 0) + return (error); #ifdef MSDOSFS_DEBUG printf("msdosfs_root(); mp %p, pmp %p, ndep %p, vp %p\n", mp, pmp, ndep, DETOV(ndep)); #endif - if ((error = deget(pmp, MSDOSFSROOT, MSDOSFSROOT_OFS, &ndep)) != 0) - return (error); *vpp = DETOV(ndep); return (0); }