diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-02 22:20:09 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-07-02 22:20:09 +0000 |
commit | b465f3e780026bbb1f86ec7a6203a06672328984 (patch) | |
tree | d469d9b497adf66bfe8e193b90c248fdbe819588 /sys/dev/vscsi.c | |
parent | 97d8260479f882ea93b1225536948b7ce658b9dd (diff) |
kqueue attach functions should return an errno or 0, not a plain 1. Fix
the obvious cases to return EINVAL and ENXIO.
ok tedu deraadt
Diffstat (limited to 'sys/dev/vscsi.c')
-rw-r--r-- | sys/dev/vscsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c index 15ad5d1576c..e7341e20fdd 100644 --- a/sys/dev/vscsi.c +++ b/sys/dev/vscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vscsi.c,v 1.23 2011/04/28 11:24:36 dlg Exp $ */ +/* $OpenBSD: vscsi.c,v 1.24 2011/07/02 22:20:07 nicm Exp $ */ /* * Copyright (c) 2008 David Gwynne <dlg@openbsd.org> @@ -504,7 +504,7 @@ vscsikqfilter(dev_t dev, struct knote *kn) break; default: device_unref(&sc->sc_dev); - return (1); + return (EINVAL); } kn->kn_hook = (caddr_t)sc; |