mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
video: adf: fix compat ioctls calling ioctl with wrong cmd
Change-Id: Icdbac3edd123b3114103dc138a60e6955006cda4 Signed-off-by: Greg Hackmann <ghackmann@google.com>
This commit is contained in:
@@ -81,7 +81,7 @@ long adf_compat_get_device_data(struct file *file,
|
||||
&data->custom_data))
|
||||
return -EFAULT;
|
||||
|
||||
ret = adf_file_ioctl(file, ADF_GET_DEVICE_DATA32, (unsigned long)data);
|
||||
ret = adf_file_ioctl(file, ADF_GET_DEVICE_DATA, (unsigned long)data);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
@@ -122,7 +122,7 @@ long adf_compat_get_interface_data(struct file *file,
|
||||
&data->custom_data))
|
||||
return -EFAULT;
|
||||
|
||||
ret = adf_file_ioctl(file, ADF_GET_DEVICE_DATA32, (unsigned long)data);
|
||||
ret = adf_file_ioctl(file, ADF_GET_INTERFACE_DATA, (unsigned long)data);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user