Home
last modified time | relevance | path

Searched hist:"653252 c2302cdf2dfbca66a7e177f7db783f9efa" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/can/
H A Draw.cdiff 653252c2302cdf2dfbca66a7e177f7db783f9efa Fri Apr 25 03:49:48 CDT 2008 Pavel Emelyanov <xemul@openvz.org> net: Fix wrong interpretation of some copy_to_user() results.

I found some places, that erroneously return the value obtained from
the copy_to_user() call: if some amount of bytes were not able to get
to the user (this is what this one returns) the proper behavior is to
return the -EFAULT error, not that number itself.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/tipc/
H A Dsocket.cdiff 653252c2302cdf2dfbca66a7e177f7db783f9efa Fri Apr 25 03:49:48 CDT 2008 Pavel Emelyanov <xemul@openvz.org> net: Fix wrong interpretation of some copy_to_user() results.

I found some places, that erroneously return the value obtained from
the copy_to_user() call: if some amount of bytes were not able to get
to the user (this is what this one returns) the proper behavior is to
return the -EFAULT error, not that number itself.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>