Skip to content

Commit

Permalink
staging: lustre: test for proper errno code in lstcon_rpc_trans_abort
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Simmons authored and Greg Kroah-Hartman committed Mar 12, 2016
1 parent b794d79 commit 9a41340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lnet/selftest/conrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9a41340

Please sign in to comment.