fs: dlm: use free_con to free connection
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Aug 2020 19:02:54 +0000 (15:02 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 27 Aug 2020 20:59:09 +0000 (15:59 -0500)
commit7ae0451e2e6c29ff9fc17754b1129d9491177634
tree85eb5265eef1d434024e9859d88d400132cfaf0c
parent948c47e9bcb6a42229cb1da1cc350c887a33ebb8
fs: dlm: use free_con to free connection

This patch use free_con() functionality to free the listen connection if
listen fails. It also fixes an issue that a freed resource is still part
of the connection_hash as hlist_del() is not called in this case. The
only difference is that free_con() handles othercon as well, but this is
never been set for the listen connection.

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