dlm: fix srcu_read_lock() return type to int
authorAlexander Aring <aahringo@redhat.com>
Mon, 2 Dec 2024 15:26:37 +0000 (10:26 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 19 Dec 2024 19:11:23 +0000 (13:11 -0600)
commit57cdd1a1cf1464199678f9338049b63fb5d5b41c
treee29a99513ce4b32cea6303565f0f43ebd52444e4
parent134129520beaf3339482c557361ea0bde709cf36
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 <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c