summaryrefslogtreecommitdiff
path: root/sys/arch/arm/xscale/pxa2x0_lcd.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-01-31 06:41:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-01-31 06:41:28 +0000
commit526b8087ad3d898dedf6c505700fe995b2548c64 (patch)
tree0e2100c6fbc3024a3434a06359e003195e877e10 /sys/arch/arm/xscale/pxa2x0_lcd.c
parentbaef74a15fee572cc1374f95668707823a009fb4 (diff)
Be sure to always return an error for unrecognized ioctls. Found by matthieu@
Diffstat (limited to 'sys/arch/arm/xscale/pxa2x0_lcd.c')
-rw-r--r--sys/arch/arm/xscale/pxa2x0_lcd.c3
1 files changed, 2 insertions, 1 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: