NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46221: Kernel panic in NFS server code



The following reply was made to PR kern/46221; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: Matthias Scheler <tron%zhadum.org.uk@localhost>
Cc: 
Subject: Re: kern/46221: Kernel panic in NFS server code
Date: Wed, 21 Mar 2012 16:13:03 +0100

 Please add an vprint() call so we get more details for this vnode.
 
 --
 Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)
 
 On Mar 21, 2012, at 4:08 PM, Matthias Scheler wrote:
 
 > I've already changed it like this:
 > 
 > Index: sys/ufs/ufs/ufs_vfsops.c
 > ===================================================================
 > RCS file: /cvsroot/src/sys/ufs/ufs/ufs_vfsops.c,v
 > retrieving revision 1.50
 > diff -u -r1.50 ufs_vfsops.c
 > --- sys/ufs/ufs/ufs_vfsops.c 1 Feb 2012 05:34:43 -0000       1.50
 > +++ sys/ufs/ufs/ufs_vfsops.c 21 Mar 2012 15:07:49 -0000
 > @@ -223,7 +223,11 @@
 >              return (error);
 >      }
 >      ip = VTOI(nvp);
 > -    if (ip->i_mode == 0 || ip->i_gen != ufhp->ufid_gen) {
 > +    if (ip == NULL || ip->i_mode == 0 || ip->i_gen != ufhp->ufid_gen) {
 > +            if (ip == NULL) {
 > +                    aprint_normal("ufs_fhtovp: ip == NULL on vp %p\n",
 > +                        nvp);
 > +            }
 >              vput(nvp);
 >              *vpp = NULLVP;
 >              return (ESTALE);
 


Home | Main Index | Thread Index | Old Index