Commit 406a4f3d authored by Ge Bian's avatar Ge Bian
Browse files

LWIS: Return the appropriate error code.

Return values of copy_to/from_user() is the number of bytes not copied.
Currently we are using them as return error code. Instead, we should return
-EFAULT if it's non-zero.

Bug: 183543066
Test: manual camera app test, CTS.
Change-Id: Ic731fa847866b526d407be0c6e7cae61e9f5cc52
parent a54da3e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment