Browse Source

staging: lustre: test for proper errno code in lstcon_rpc_trans_abort

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>
James Simmons 9 years ago
parent
commit
9a41340a41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/lustre/lnet/selftest/conrpc.c

+ 1 - 1
drivers/staging/lustre/lnet/selftest/conrpc.c

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