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 | |
parent | baef74a15fee572cc1374f95668707823a009fb4 (diff) |
Be sure to always return an error for unrecognized ioctls. Found by matthieu@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm/xscale/pxa2x0_lcd.c | 3 | ||||
-rw-r--r-- | sys/arch/luna88k/dev/lunafb.c | 3 | ||||
-rw-r--r-- | sys/dev/ic/vga.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/pxa2x0_lcd.c b/sys/arch/arm/xscale/pxa2x0_lcd.c index d01502ec642..67e6ccfa1dd 100644 --- a/sys/arch/arm/xscale/pxa2x0_lcd.c +++ b/sys/arch/arm/xscale/pxa2x0_lcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pxa2x0_lcd.c,v 1.11 2005/01/21 16:22:34 miod Exp $ */ +/* $OpenBSD: pxa2x0_lcd.c,v 1.12 2005/01/31 06:41:25 miod Exp $ */ /* $NetBSD: pxa2x0_lcd.c,v 1.8 2003/10/03 07:24:05 bsh Exp $ */ /* @@ -788,6 +788,7 @@ pxa2x0_lcd_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) case WSDISPLAYIO_GCURMAX: case WSDISPLAYIO_GCURSOR: case WSDISPLAYIO_SCURSOR: + default: return -1; /* not implemented */ case WSDISPLAYIO_LINEBYTES: diff --git a/sys/arch/luna88k/dev/lunafb.c b/sys/arch/luna88k/dev/lunafb.c index 036977ad527..d5f2a8afa1d 100644 --- a/sys/arch/luna88k/dev/lunafb.c +++ b/sys/arch/luna88k/dev/lunafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lunafb.c,v 1.4 2005/01/05 23:04:24 miod Exp $ */ +/* $OpenBSD: lunafb.c,v 1.5 2005/01/31 06:41:27 miod Exp $ */ /* $NetBSD: lunafb.c,v 1.7.6.1 2002/08/07 01:48:34 lukem Exp $ */ /*- @@ -272,6 +272,7 @@ omfbioctl(v, cmd, data, flag, p) case WSDISPLAYIO_GCURMAX: case WSDISPLAYIO_GCURSOR: case WSDISPLAYIO_SCURSOR: + default: return (-1); } 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; } |