diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-08-26 09:04:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 10:24:06 +0200 |
commit | 092c3def24bb68a00ff58c76ed67b9ff448387ce (patch) | |
tree | e7b7a081dc2fafcebd3ece90a5047b0e16806b70 /drivers/staging/board | |
parent | 3ca121c2f4be85f3fbf398583bc8c42a145e3533 (diff) |
staging: lustre: obdclass: return -EFAULT if copy_from_user() fails
The copy_from_user() function returns the number of bytes which we
weren't able to copy. We don't want to return that to the user but
instead we want to return -EFAULT.
Fixes: d7e09d0397e8 ("staging: add Lustre file system client support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/board')
0 files changed, 0 insertions, 0 deletions