Skip to content

Commit 57cdd1a

Browse files
Alexander Aringteigland
authored andcommitted
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: 6f0b0b5 ("fs: dlm: remove dlm_node_addrs lookup list") Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 1341295 commit 57cdd1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/dlm/lowcomms.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ static bool dlm_lowcomms_con_has_addr(const struct connection *con,
462462
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr)
463463
{
464464
struct connection *con;
465-
bool ret, idx;
465+
bool ret;
466+
int idx;
466467

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

0 commit comments

Comments
 (0)