]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: test for proper errno code in lstcon_rpc_trans_abort
authorJames Simmons <jsimmons@infradead.org>
Sat, 12 Mar 2016 01:29:49 +0000 (20:29 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:26:02 +0000 (22:26 -0800)
The error value returned will be -ETIMEDOUT not ETIMEDOUT. This fixes
a typo that prevents us from handling the error case.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/conrpc.c

index cdb660e33998b395800c335ae540091e01bc82f0..dc454ca8cd90d31a68332c67b96b4ae207d3e982 100644 (file)
@@ -313,7 +313,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)
 
                sfw_abort_rpc(rpc);
 
-               if (error != ETIMEDOUT)
+               if (error != -ETIMEDOUT)
                        continue;
 
                nd = crpc->crp_node;