Commit 57cdd1a1 authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland
Browse files

dlm: fix srcu_read_lock() return type to int



The return type of srcu_read_lock() is int and not bool. Whereas we
using the ret variable only to evaluate a bool type of
dlm_lowcomms_con_has_addr() to check if an address is already being set.

Fixes: 6f0b0b5d ("fs: dlm: remove dlm_node_addrs lookup list")
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 13412952
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -462,7 +462,8 @@ static bool dlm_lowcomms_con_has_addr(const struct connection *con,
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr)
{
	struct connection *con;
	bool ret, idx;
	bool ret;
	int idx;

	idx = srcu_read_lock(&connections_srcu);
	con = nodeid2con(nodeid, GFP_NOFS);