commit | 2c30aba2b2894ceb2108f1cb2602015b121e9a81 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Jun 18 10:05:29 2013 +0300 |
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | Wed Jun 26 16:03:36 2013 +0300 |
tree | 0972bcf333d5c4273167fe2b8d1f31fdb74adebb | |
parent | 72e5512ade915862035679ca51c4645c7fb5f1ca [diff] |
fbmem: return -EFAULT on copy_to_user() failure 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>