Module Name: src
Committed By: pgoyette
Date: Fri Jul 22 01:50:12 UTC 2016
Modified Files:
src/sys/miscfs/specfs [pgoyette-localcount]: spec_vnops.c
Log Message:
Return the actual error code, rather than blind success.
To generate a diff of this commit:
cvs rdiff -u -r1.162.2.2 -r1.162.2.3 src/sys/miscfs/specfs/spec_vnops.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/miscfs/specfs/spec_vnops.c
diff -u src/sys/miscfs/specfs/spec_vnops.c:1.162.2.2 src/sys/miscfs/specfs/spec_vnops.c:1.162.2.3
--- src/sys/miscfs/specfs/spec_vnops.c:1.162.2.2 Thu Jul 21 13:09:47 2016
+++ src/sys/miscfs/specfs/spec_vnops.c Fri Jul 22 01:50:12 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: spec_vnops.c,v 1.162.2.2 2016/07/21 13:09:47 pgoyette Exp $ */
+/* $NetBSD: spec_vnops.c,v 1.162.2.3 2016/07/22 01:50:12 pgoyette Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.162.2.2 2016/07/21 13:09:47 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.162.2.3 2016/07/22 01:50:12 pgoyette Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -667,7 +667,7 @@ spec_open(void *v)
if (bdev != NULL)
bdevsw_release(bdev);
- return 0;
+ return error;
}
/*