Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/isofs/cd9660 Pull up revision 1.53 (requested by wr...



details:   https://anonhg.NetBSD.org/src/rev/0f6a89b155e9
branches:  netbsd-1-5
changeset: 491188:0f6a89b155e9
user:      he <he%NetBSD.org@localhost>
date:      Fri Apr 06 00:03:08 2001 +0000

description:
Pull up revision 1.53 (requested by wrstuden):
  Explicitly VOP_UNLOCK before setting v_op to spec_vnode_ops_p.
  Works around a lock leak and eventual kernel panic.

diffstat:

 sys/isofs/cd9660/cd9660_vfsops.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 73f814cada1b -r 0f6a89b155e9 sys/isofs/cd9660/cd9660_vfsops.c
--- a/sys/isofs/cd9660/cd9660_vfsops.c  Fri Apr 06 00:02:45 2001 +0000
+++ b/sys/isofs/cd9660/cd9660_vfsops.c  Fri Apr 06 00:03:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd9660_vfsops.c,v 1.48.2.1 2000/07/16 07:52:07 jdolecek Exp $  */
+/*     $NetBSD: cd9660_vfsops.c,v 1.48.2.2 2001/04/06 00:03:08 he Exp $        */
 
 /*-
  * Copyright (c) 1994
@@ -900,8 +900,9 @@
                         */
                        nvp->v_data = vp->v_data;
                        vp->v_data = NULL;
+                       VOP_UNLOCK(vp, 0);
                        vp->v_op = spec_vnodeop_p;
-                       vput(vp);
+                       vrele(vp);
                        vgone(vp);
                        lockmgr(&nvp->v_lock, LK_EXCLUSIVE, &nvp->v_interlock);
                        /*



Home | Main Index | Thread Index | Old Index