mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-03 21:19:09 +08:00
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:
committed by
Greg Kroah-Hartman
parent
b794d796b4
commit
9a41340a41
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user