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>
This commit is contained in:
parent
b794d796b4
commit
9a41340a41
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue