staging: lustre: lnet: fix incorrect arguments order calling lstcon_session_new
authorColin Ian King <colin.king@canonical.com>
Wed, 19 Jul 2017 16:20:36 +0000 (17:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2017 15:01:54 +0000 (08:01 -0700)
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>
drivers/staging/lustre/lnet/selftest/conctl.c

index 6ca7192b03b7596b33e6cff99d263166228ccea4..043eafb5ea403d512b62bc07c18a0abc34d4c619 100644 (file)
@@ -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);