datapath: Always return EFAULT to userspace when copy_to/from_user() fails.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 20:41:15 +0000 (13:41 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Mar 2009 20:43:22 +0000 (13:43 -0700)
commitbaddb36a93761de4b1c58ede7e43600389f7c9f0
tree26b2d96299f9cf250ac52b78bd6c84a92f8600f3
parentfb8dc8eff38ae583fa692111bd5b515e9e627f1d
datapath: Always return EFAULT to userspace when copy_to/from_user() fails.

copy_from_user() and copy_to_user() return the number of bytes that could
not be copied, not a conventional error code, so we need to translate it
into -EFAULT ourselves.
datapath/datapath.c