dlm: fix invalid free
commitacc555689f39c73a1b8926d20e8ccaa278f0aee6
authorTycho Andersen <tycho@tycho.ws>
Fri, 2 Nov 2018 20:18:20 +0000 (2 14:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:26:07 +0000 (28 18:26 +0100)
tree88da6f60e32c15865231536ce0b2a1c0496ec3e8
parent9d4c8d7bae138e26698d445b1bf3f455eb3bc56d
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