===================================================================
ChangeSet@1.1215.104.28, 2003-06-11 16:58:41+02:00, vsu@altlinux.ru
hid: Add missing 'return 0's in hiddev ioctl handler.
hiddev.c | 10 ++++++++++
1 files changed, 10 insertions(+)
===================================================================
diff -Nru a/drivers/usb/input/hiddev.c b/drivers/usb/input/hiddev.c
--- a/drivers/usb/input/hiddev.c Sat Jun 14 22:24:10 2003
+++ b/drivers/usb/input/hiddev.c Sat Jun 14 22:24:10 2003
@@ -442,10 +442,14 @@
if (copy_to_user((void *) arg, &dinfo, sizeof(dinfo)))
return -EFAULT;
+ return 0;
+
case HIDIOCGFLAG:
if (put_user(list->flags, (int *) arg))
return -EFAULT;
+ return 0;
+
case HIDIOCSFLAG:
{
int newflags;
@@ -533,6 +537,8 @@
if (copy_to_user((void *) arg, &rinfo, sizeof(rinfo)))
return -EFAULT;
+ return 0;
+
case HIDIOCGFIELDINFO:
if (copy_from_user(&finfo, (void *) arg, sizeof(finfo)))
return -EFAULT;
@@ -564,6 +570,8 @@
if (copy_to_user((void *) arg, &finfo, sizeof(finfo)))
return -EFAULT;
+ return 0;
+
case HIDIOCGUCODE:
if (copy_from_user(&uref, (void *) arg, sizeof(uref)))
return -EFAULT;
@@ -584,6 +592,8 @@
if (copy_to_user((void *) arg, &uref, sizeof(uref)))
return -EFAULT;
+
+ return 0;
case HIDIOCGUSAGE:
case HIDIOCSUSAGE:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/