]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
can: Fix copy_from_user() results interpretation
authorSam Ravnborg <sam@ravnborg.org>
Sun, 27 Apr 2008 05:57:25 +0000 (22:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Apr 2008 21:26:51 +0000 (14:26 -0700)
commit3f91bd420a955803421f2db17b2e04aacfbb2bb8
tree52f47db69004eddcd22bfa69246d08632dfcd256
parent5c5d6dabb7aac9d0ea7aa76b909bbd28efa99065
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: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Oliver Hartkopp <oliver.hartkopp@volkswagen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/raw.c