Skip to content

Commit 9a41340

Browse files
jamesasimmonsgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b794d79 commit 9a41340

File tree

1 file changed

+1
-1
lines changed
  • drivers/staging/lustre/lnet/selftest

1 file changed

+1
-1
lines changed

drivers/staging/lustre/lnet/selftest/conrpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)
313313

314314
sfw_abort_rpc(rpc);
315315

316-
if (error != ETIMEDOUT)
316+
if (error != -ETIMEDOUT)
317317
continue;
318318

319319
nd = crpc->crp_node;

0 commit comments

Comments
 (0)