From: Stefan Richter Date: Mon, 27 Oct 2008 22:26:35 +0000 (+0100) Subject: firewire: fix ioctl() return code X-Git-Tag: v2.6.27.5~38 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=882491755d4c819de5bb593f04d06692185760aa;p=karo-tx-linux.git firewire: fix ioctl() return code commit 99692f71ee04c6f249d0bf6a581359f32f409a38 upstream 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index cfceb2cba4e4..ed03234cbea8 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c @@ -913,7 +913,7 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg) return -EFAULT; } - return 0; + return retval; } static long