From 3ddf971320c062215adca54a66b8c746a56f1bc8 Mon Sep 17 00:00:00 2001 From: Cristina Moraru Date: Wed, 16 Mar 2016 11:43:27 -0400 Subject: [PATCH] LU-4423 lnet: Don't ignore error code for lst_group_info_ioctl Error stored in rc was never reported, so directly return it here. Linux-commit : 2a96be0d46825689ac9b6078056e523ba96acec4 Change-Id: I0535d0a101c1142f035e6dfba240e95fc9040eb2 Signed-off-by: Cristina Moraru Signed-off-by: Greg Kroah-Hartman Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/18952 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Doug Oucharek Reviewed-by: Dmitry Eremin Reviewed-by: Frank Zago Reviewed-by: Oleg Drokin --- lnet/selftest/conctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/selftest/conctl.c b/lnet/selftest/conctl.c index bd438eb..804a7a0 100644 --- a/lnet/selftest/conctl.c +++ b/lnet/selftest/conctl.c @@ -436,7 +436,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; } -- 1.8.3.1