Skip to content
Commit 3f91bd42 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller
Browse files

can: Fix copy_from_user() results interpretation



Both copy_to_ and _from_user return the number of bytes, that failed to
reach their destination, not the 0/-EXXX values.

Based on patch from Pavel Emelyanov <xemul@openvz.org>

Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Acked-by: default avatarOliver Hartkopp <oliver.hartkopp@volkswagen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c5d6dab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment