summaryrefslogtreecommitdiff
path: root/drivers/staging/lustre/lnet/selftest/conctl.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-07-19 17:20:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-30 08:01:54 -0700
commit52bc17b0298f7fa721fee447ddf05c91df361786 (patch)
tree6fe4f91ca8e46135677f314908e18687e63d1ff4 /drivers/staging/lustre/lnet/selftest/conctl.c
parentdc5b02a9087167da602e826801cdf7c8b0dbe32a (diff)
staging: lustre: lnet: fix incorrect arguments order calling lstcon_session_new
The arguments args->lstio_ses_force and args->lstio_ses_timeout are in the incorrect order. Fix this by swapping them around. Detected by CoverityScan, CID#1226833 ("Arguments in wrong order") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/conctl.c')
-rw-r--r--drivers/staging/lustre/lnet/selftest/conctl.c2
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 6ca7192b03b7..043eafb5ea40 100644
--- a/drivers/staging/lustre/lnet/selftest/conctl.c
+++ b/drivers/staging/lustre/lnet/selftest/conctl.c
@@ -69,8 +69,8 @@ lst_session_new_ioctl(struct lstio_session_new_args *args)
rc = lstcon_session_new(name,
args->lstio_ses_key,
args->lstio_ses_feats,
- args->lstio_ses_force,
args->lstio_ses_timeout,
+ args->lstio_ses_force,
args->lstio_ses_idp);
LIBCFS_FREE(name, args->lstio_ses_nmlen + 1);