dlm: fix invalid free
authorTycho Andersen <tycho@tycho.ws>
Fri, 2 Nov 2018 20:18:20 +0000 (14:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:29:00 +0000 (18:29 +0100)
commit81a30f89c7fceb8917d968dee62bd2d3ec632618
tree06717db8ae269cbfff328740a4d0c34f79977902
parent4bbb2151c9d43abba7847a8be91b3162b797c706
dlm: fix invalid free

[ Upstream commit d968b4e240cfe39d39d80483bac8bca8716fd93c ]

dlm_config_nodes() does not allocate nodes on failure, so we should not
free() nodes when it fails.

Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/dlm/member.c