staging: lustre: return -EFAULT instead of bytes remaining
authorVitaly Osipov <vitaly.osipov@gmail.com>
Sun, 4 May 2014 04:14:26 +0000 (14:14 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 23:10:41 +0000 (16:10 -0700)
commita9c08b0ac1c4f022bda7e2c7aa11869da33a8058
treec010f57b6440f28934f13a0ae9667cc935222476
parent751a624adbe47145d3667c4b504858ffd3e8f175
staging: lustre: return -EFAULT instead of bytes remaining

return -EFAULT instead of the value returned by copy_from_user()

Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-module.c