fs: dlm: fix check for multi-homed hosts
authorAlexander Aring <aahringo@redhat.com>
Tue, 3 Nov 2020 01:04:26 +0000 (20:04 -0500)
committerDavid Teigland <teigland@redhat.com>
Tue, 10 Nov 2020 18:14:20 +0000 (12:14 -0600)
commit1a26bfafbce0f2ec8cfe04d9cdcaead0e6dd58ec
tree1aff61f32f27f140154828bcc61e4003a022729f
parentd11ccd451b655617388ace167ab2440b4b4cc95b
fs: dlm: fix check for multi-homed hosts

This patch will use the runtime array size dlm_local_count variable
to check the actual size of the dlm_local_addr array. There exists
currently a cleanup bug, because the tcp_listen_for_all() functionality
might check on a dangled pointer.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c