mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
sync: use correct signed type when handling SYNC_IOC_WAIT
Change-Id: Ic7d5adf9b145765e52b23186b8c3c793ccf29be7 Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
@@ -634,7 +634,7 @@ static unsigned int sync_fence_poll(struct file *file, poll_table *wait)
|
||||
|
||||
static long sync_fence_ioctl_wait(struct sync_fence *fence, unsigned long arg)
|
||||
{
|
||||
__u32 value;
|
||||
__s32 value;
|
||||
|
||||
if (copy_from_user(&value, (void __user *)arg, sizeof(value)))
|
||||
return -EFAULT;
|
||||
|
||||
Reference in New Issue
Block a user