Commit 9a41340a authored by James Simmons's avatar James Simmons Committed by Greg Kroah-Hartman
Browse files

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: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b794d796
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -313,7 +313,7 @@ lstcon_rpc_trans_abort(lstcon_rpc_trans_t *trans, int error)


		sfw_abort_rpc(rpc);
		sfw_abort_rpc(rpc);


		if (error != ETIMEDOUT)
		if (error != -ETIMEDOUT)
			continue;
			continue;


		nd = crpc->crp_node;
		nd = crpc->crp_node;