Minor fix in VoE handler.

This commit is contained in:
Florian Pose
2009-02-02 13:32:48 +00:00
parent 5ea60780a0
commit e60948f4e1
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -2347,6 +2347,8 @@ int ec_cdev_ioctl_voe_exec(
data.state = ecrt_voe_handler_execute(voe);
if (data.state == EC_REQUEST_SUCCESS && voe->dir == EC_DIR_INPUT)
data.size = ecrt_voe_handler_data_size(voe);
else
data.size = 0;
if (copy_to_user((void __user *) arg, &data, sizeof(data)))
return -EFAULT;