diff options
author | Cristina Moraru <cristina.moraru09@gmail.com> | 2015-10-25 23:16:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 14:35:29 +0900 |
commit | 2a96be0d46825689ac9b6078056e523ba96acec4 (patch) | |
tree | 69ac839d2551449762d695c7976049a3b9fd169e /drivers/staging/lustre | |
parent | 81b9c1abc0fd955d636334615055691f15a1a125 (diff) | |
download | talos-op-linux-2a96be0d46825689ac9b6078056e523ba96acec4.tar.gz talos-op-linux-2a96be0d46825689ac9b6078056e523ba96acec4.zip |
staging: lustre: Don't ignore error code
Error stored in rc was never reported,
so directly return it here.
Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/conctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/conctl.c b/drivers/staging/lustre/lnet/selftest/conctl.c index 817396638652..556c837cf62c 100644 --- a/drivers/staging/lustre/lnet/selftest/conctl.c +++ b/drivers/staging/lustre/lnet/selftest/conctl.c @@ -441,7 +441,7 @@ lst_group_info_ioctl(lstio_group_info_args_t *args) if (args->lstio_grp_dentsp != NULL && (copy_to_user(args->lstio_grp_idxp, &index, sizeof(index)) || copy_to_user(args->lstio_grp_ndentp, &ndent, sizeof(ndent)))) - rc = -EFAULT; + return -EFAULT; return 0; } |