Module Name:    src
Committed By:   pooka
Date:           Fri Apr 16 11:22:43 UTC 2010

Modified Files:
        src/sys/dev: fss.c

Log Message:
release lock in error branch


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/fss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/fss.c
diff -u src/sys/dev/fss.c:1.68 src/sys/dev/fss.c:1.69
--- src/sys/dev/fss.c:1.68	Tue Apr 13 07:58:54 2010
+++ src/sys/dev/fss.c	Fri Apr 16 11:22:43 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: fss.c,v 1.68 2010/04/13 07:58:54 hannken Exp $	*/
+/*	$NetBSD: fss.c,v 1.69 2010/04/16 11:22:43 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.68 2010/04/13 07:58:54 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.69 2010/04/16 11:22:43 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -196,8 +196,10 @@
 		cf->cf_unit = minor(dev);
 		cf->cf_fstate = FSTATE_STAR;
 		sc = device_private(config_attach_pseudo(cf));
-		if (sc == NULL)
+		if (sc == NULL) {
+			mutex_exit(&fss_device_lock);
 			return ENOMEM;
+		}
 	}
 
 	mutex_enter(&sc->sc_slock);

Reply via email to