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>
This commit is contained in:
Cristina Moraru 2015-10-25 23:16:31 +02:00 committed by Greg Kroah-Hartman
parent 81b9c1abc0
commit 2a96be0d46
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}