]> git.baikalelectronics.ru Git - kernel.git/commit
video: pxa3xx-gcu: Return -EFAULT when copy_from_user() fails
authoraxel lin <axel.lin@gmail.com>
Fri, 14 Jan 2011 09:39:11 +0000 (09:39 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Jan 2011 04:40:34 +0000 (13:40 +0900)
commited8435c9004b876df87df46bb7ed56c0bf133b18
tree773b512ff69f55966af6ba0cc69bd82d85723b64
parentff4bcef905e83e0d875aafa2fa15843df66af979
video: pxa3xx-gcu: Return -EFAULT when copy_from_user() fails

Return -EFAULT instead of number of bytes that could not be copied if
copy_from_user() fails.

Also fix a typo in the comments.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/pxa3xx-gcu.c