Source-Changes-HG archive

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

[src/pgoyette-localcount]: src/sys/miscfs/specfs Return the actual error code...



details:   https://anonhg.NetBSD.org/src/rev/2e9fea9d7ef2
branches:  pgoyette-localcount
changeset: 852834:2e9fea9d7ef2
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Jul 22 01:50:12 2016 +0000

description:
Return the actual error code, rather than blind success.

diffstat:

 sys/miscfs/specfs/spec_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a44a88a5aee1 -r 2e9fea9d7ef2 sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Thu Jul 21 13:09:47 2016 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Fri Jul 22 01:50:12 2016 +0000
@@ -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 @@
        if (bdev != NULL)
                bdevsw_release(bdev);
 
-       return 0;
+       return error;
 }
 
 /*



Home | Main Index | Thread Index | Old Index