git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e5512
)
fbmem: return -EFAULT on copy_to_user() failure
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 18 Jun 2013 07:05:29 +0000
(10:05 +0300)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Wed, 26 Jun 2013 13:03:36 +0000
(16:03 +0300)
copy_to_user() returns the number of bytes remaining to be copied.
put_user() returns -EFAULT on error.
This function ORs a bunch of stuff together and returns jumbled non-zero
values on error. It should return -EFAULT.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
No differences found