aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Aring <[email protected]>2024-12-02 15:26:37 +0000
committerDavid Teigland <[email protected]>2024-12-19 19:11:23 +0000
commit57cdd1a1cf1464199678f9338049b63fb5d5b41c (patch)
treee29a99513ce4b32cea6303565f0f43ebd52444e4
parentdlm: fix removal of rsb struct that is master and dir record (diff)
downloadkernel-57cdd1a1cf1464199678f9338049b63fb5d5b41c.tar.gz
kernel-57cdd1a1cf1464199678f9338049b63fb5d5b41c.zip
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: 6f0b0b5d7ae7 ("fs: dlm: remove dlm_node_addrs lookup list") Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: David Teigland <[email protected]>
-rw-r--r--fs/dlm/lowcomms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index df40c3fd1070..d28141829c05 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -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);