Skip to content
Commit d2338070 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

tehuti: return -EFAULT on copy_to_user errors



copy_to_user() returns the number of bytes remaining but we want to
return a negative error code here.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 60a5711d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment