projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3a7d79
)
sync: use correct signed type when handling SYNC_IOC_WAIT
author
Erik Gilling
<konkers@android.com>
Tue, 4 Sep 2012 22:28:52 +0000
(15:28 -0700)
committer
黄涛
<huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:47:09 +0000
(17:47 +0800)
Change-Id: Ic7d5adf9b145765e52b23186b8c3c793ccf29be7
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c
patch
|
blob
|
history
diff --git
a/drivers/base/sync.c
b/drivers/base/sync.c
index 4e63d41d6ffdbe934aed88ae283b373a33126481..c11ab4d8230c3eb8e490443d5bfea4649def1653 100644
(file)
--- 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)
{
- __
u
32 value;
+ __
s
32 value;
if (copy_from_user(&value, (void __user *)arg, sizeof(value)))
return -EFAULT;