Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/procfs Release the hash lock on failure.



details:   https://anonhg.NetBSD.org/src/rev/bee880703236
branches:  trunk
changeset: 544223:bee880703236
user:      enami <enami%NetBSD.org@localhost>
date:      Sat Mar 15 00:22:47 2003 +0000

description:
Release the hash lock on failure.

diffstat:

 sys/miscfs/procfs/procfs_subr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 41e02c94d691 -r bee880703236 sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Fri Mar 14 23:48:00 2003 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Sat Mar 15 00:22:47 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.47 2003/03/04 18:55:02 tron Exp $    */
+/*     $NetBSD: procfs_subr.c,v 1.48 2003/03/15 00:22:47 enami Exp $   */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou.  All rights reserved.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.47 2003/03/04 18:55:02 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.48 2003/03/15 00:22:47 enami Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -218,6 +218,7 @@
        return (0);
 
  bad:
+       lockmgr(&pfs_hashlock, LK_RELEASE, NULL);
        FREE(pfs, M_TEMP);
        ungetnewvnode(vp);
        return (error);



Home | Main Index | Thread Index | Old Index