patch-2.3.99-pre7 linux/drivers/sbus/char/sunmouse.c

Next file: linux/drivers/sbus/char/vfc_i2c.c
Previous file: linux/drivers/sbus/char/sunkbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/sbus/char/sunmouse.c linux/drivers/sbus/char/sunmouse.c
@@ -563,13 +563,13 @@
 		/* This is a buggy application doing termios on the mouse driver */
 		/* we ignore it.  I keep this check here so that we will notice   */
 		/* future mouse vuid ioctls */
-		break;
+		return -ENOTTY;
 		
 	default:
 #ifdef DEBUG
 		printk ("[MOUSE-ioctl: %8.8x]\n", cmd);
 #endif
-		return -1;
+		return -EINVAL;
 	}
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)