commit | 092c3def24bb68a00ff58c76ed67b9ff448387ce | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Aug 26 09:04:18 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Aug 28 10:24:06 2017 +0200 |
tree | e7b7a081dc2fafcebd3ece90a5047b0e16806b70 | |
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>