From: Erik Gilling Date: Tue, 4 Sep 2012 22:28:52 +0000 (-0700) Subject: sync: use correct signed type when handling SYNC_IOC_WAIT X-Git-Tag: firefly_0821_release~7559 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a5716d51daf8976ec2c99713b8ed2c4e517fe4c7;p=firefly-linux-kernel-4.4.55.git sync: use correct signed type when handling SYNC_IOC_WAIT Change-Id: Ic7d5adf9b145765e52b23186b8c3c793ccf29be7 Signed-off-by: Erik Gilling --- diff --git a/drivers/base/sync.c b/drivers/base/sync.c index 4e63d41d6ffd..c11ab4d8230c 100644 --- a/drivers/base/sync.c +++ b/drivers/base/sync.c @@ -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;