diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firewire/core-cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index b1c11775839c..9b5915ebeb35 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c | |||
@@ -1583,7 +1583,7 @@ static int dispatch_ioctl(struct client *client, | |||
1583 | if (_IOC_TYPE(cmd) != '#' || | 1583 | if (_IOC_TYPE(cmd) != '#' || |
1584 | _IOC_NR(cmd) >= ARRAY_SIZE(ioctl_handlers) || | 1584 | _IOC_NR(cmd) >= ARRAY_SIZE(ioctl_handlers) || |
1585 | _IOC_SIZE(cmd) > sizeof(buffer)) | 1585 | _IOC_SIZE(cmd) > sizeof(buffer)) |
1586 | return -EINVAL; | 1586 | return -ENOTTY; |
1587 | 1587 | ||
1588 | if (_IOC_DIR(cmd) == _IOC_READ) | 1588 | if (_IOC_DIR(cmd) == _IOC_READ) |
1589 | memset(&buffer, 0, _IOC_SIZE(cmd)); | 1589 | memset(&buffer, 0, _IOC_SIZE(cmd)); |