Module Name: src
Committed By: dyoung
Date: Thu Jul 2 02:06:11 UTC 2009
Modified Files:
src/sys/dev: vnd.c
Log Message:
In vndopen(), release the lock before returning ENXIO.
To generate a diff of this commit:
cvs rdiff -u -r1.201 -r1.202 src/sys/dev/vnd.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/vnd.c
diff -u src/sys/dev/vnd.c:1.201 src/sys/dev/vnd.c:1.202
--- src/sys/dev/vnd.c:1.201 Thu May 7 09:13:13 2009
+++ src/sys/dev/vnd.c Thu Jul 2 02:06:11 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: vnd.c,v 1.201 2009/05/07 09:13:13 cegger Exp $ */
+/* $NetBSD: vnd.c,v 1.202 2009/07/02 02:06:11 dyoung Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -130,7 +130,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.201 2009/05/07 09:13:13 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.202 2009/07/02 02:06:11 dyoung Exp $");
#if defined(_KERNEL_OPT)
#include "fs_nfs.h"
@@ -356,8 +356,10 @@
if ((error = vndlock(sc)) != 0)
return error;
- if ((sc->sc_flags & VNF_CLEARING) != 0)
- return ENXIO;
+ if ((sc->sc_flags & VNF_CLEARING) != 0) {
+ error = ENXIO;
+ goto done;
+ }
lp = sc->sc_dkdev.dk_label;