diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-31 06:41:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-31 06:41:28 +0000 |
commit | 526b8087ad3d898dedf6c505700fe995b2548c64 (patch) | |
tree | 0e2100c6fbc3024a3434a06359e003195e877e10 /sys/dev/ic | |
parent | baef74a15fee572cc1374f95668707823a009fb4 (diff) |
Be sure to always return an error for unrecognized ioctls. Found by matthieu@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/vga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index f2eb6c2da76..2fc58732372 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga.c,v 1.37 2005/01/05 23:04:25 miod Exp $ */ +/* $OpenBSD: vga.c,v 1.38 2005/01/31 06:41:27 miod Exp $ */ /* $NetBSD: vga.c,v 1.28.2.1 2000/06/30 16:27:47 simonb Exp $ */ /* @@ -613,6 +613,7 @@ vga_ioctl(v, cmd, data, flag, p) case WSDISPLAYIO_GCURMAX: case WSDISPLAYIO_GCURSOR: case WSDISPLAYIO_SCURSOR: + default: /* NONE of these operations are by the generic VGA driver. */ return ENOTTY; } |