diff options
| author | christos <christos@NetBSD.org> | 2005-08-28 08:56:14 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2005-08-28 08:56:14 +0000 |
| commit | f9364a89367fb65424b8adce2e22e4367d7f04ee (patch) | |
| tree | da4d458aca7c37933bfec2e9fff2215d4a7a7963 /sys/dev/vnd.c | |
| parent | 98785bd85ae6f6d48436c11d9e636034a511e587 (diff) | |
Fix logic error in vndiocget.
Diffstat (limited to 'sys/dev/vnd.c')
| -rw-r--r-- | sys/dev/vnd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 77f64612c74..77475e3dcf7 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $NetBSD: vnd.c,v 1.121 2005/08/20 12:01:04 yamt Exp $ */ +/* $NetBSD: vnd.c,v 1.122 2005/08/28 08:56:14 christos Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -133,7 +133,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.121 2005/08/20 12:01:04 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.122 2005/08/28 08:56:14 christos Exp $"); #if defined(_KERNEL_OPT) #include "fs_nfs.h" @@ -817,7 +817,7 @@ vnd_cget(struct proc *p, int unit, int *un, struct vattr *va) vnd = &vnd_softc[*un]; if ((vnd->sc_flags & VNF_INITED) == 0) - return 0; + return -1; return VOP_GETATTR(vnd->sc_vp, va, p->p_ucred, p); } |
