patch-2.2.16 linux/drivers/sbus/char/sunmouse.c

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

diff -urN v2.2.15/linux/drivers/sbus/char/sunmouse.c linux/drivers/sbus/char/sunmouse.c
@@ -524,13 +524,14 @@
 		/* 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)