mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 07:30:54 +07:00
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>
This commit is contained in:
parent
948c47e9bc
commit
7ae0451e2e
@ -1704,10 +1704,8 @@ int dlm_lowcomms_start(void)
|
|||||||
fail_unlisten:
|
fail_unlisten:
|
||||||
dlm_allow_conn = 0;
|
dlm_allow_conn = 0;
|
||||||
con = nodeid2con(0,0);
|
con = nodeid2con(0,0);
|
||||||
if (con) {
|
if (con)
|
||||||
close_connection(con, false, true, true);
|
free_conn(con);
|
||||||
kfree_rcu(con, rcu);
|
|
||||||
}
|
|
||||||
fail:
|
fail:
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user