firewire: fix ioctl() return code
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 12 Sep 2008 16:20:16 +0000 (18:20 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 15 Oct 2008 20:21:10 +0000 (22:21 +0200)
Reported by Jay Fenlason:  ioctl() did not return as intended
  - the size of data read into ioctl_send_request,
  - the number of datagrams enqueued by ioctl_queue_iso.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-cdev.c

index cfceb2cba4e49e91c50e62d3175592961a017b07..ed03234cbea89ea2247b9d4d005d7e5d1baf1221 100644 (file)
@@ -913,7 +913,7 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
                        return -EFAULT;
        }
 
-       return 0;
+       return retval;
 }
 
 static long