Source-Changes-HG archive

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

[src/pgoyette-localcount]: src/sys/dev Return ENXIO if the device is NOT foun...



details:   https://anonhg.NetBSD.org/src/rev/b0e2b47b8e19
branches:  pgoyette-localcount
changeset: 852875:b0e2b47b8e19
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Jul 27 23:17:31 2016 +0000

description:
Return ENXIO if the device is NOT found, not when the device IS found!

diffstat:

 sys/dev/vnd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 764749ae912c -r b0e2b47b8e19 sys/dev/vnd.c
--- a/sys/dev/vnd.c     Wed Jul 27 11:51:57 2016 +0000
+++ b/sys/dev/vnd.c     Wed Jul 27 23:17:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnd.c,v 1.256.2.9 2016/07/27 11:51:57 pgoyette Exp $   */
+/*     $NetBSD: vnd.c,v 1.256.2.10 2016/07/27 23:17:31 pgoyette Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.256.2.9 2016/07/27 11:51:57 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.256.2.10 2016/07/27 23:17:31 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_vnd.h"
@@ -1241,7 +1241,7 @@
        }
 
        self = device_lookup_acquire(&vnd_cd, unit);
-       if (self != NULL)
+       if (self == NULL)
                return ENXIO;
        vnd = device_private(self);
 



Home | Main Index | Thread Index | Old Index