diff options
Diffstat (limited to 'drivers/firewire/fw-device-cdev.c')
-rw-r--r-- | drivers/firewire/fw-device-cdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c index 5437ad245a37..68428d013d8d 100644 --- a/drivers/firewire/fw-device-cdev.c +++ b/drivers/firewire/fw-device-cdev.c | |||
@@ -290,6 +290,8 @@ static int ioctl_get_info(struct client *client, void __user *arg) | |||
290 | return -EFAULT; | 290 | return -EFAULT; |
291 | } | 291 | } |
292 | 292 | ||
293 | get_info.card = client->device->card->index; | ||
294 | |||
293 | if (copy_to_user(arg, &get_info, sizeof get_info)) | 295 | if (copy_to_user(arg, &get_info, sizeof get_info)) |
294 | return -EFAULT; | 296 | return -EFAULT; |
295 | 297 | ||