dlm: fix possible call to kfree() for non-initialized pointer
authorDenis V. Lunev <den@openvz.org>
Tue, 13 Nov 2018 17:39:50 +0000 (20:39 +0300)
committerDavid Teigland <teigland@redhat.com>
Tue, 13 Nov 2018 17:41:09 +0000 (11:41 -0600)
commit58a923adf4d9aca8bf7205985c9c8fc531c65d72
treef7f990636dac9f01fb3ec3f42387e07adb9d1f33
parent216f0efd19b9cc32207934fd1b87a45f2c4c593e
dlm: fix possible call to kfree() for non-initialized pointer

Technically dlm_config_nodes() could return error and keep nodes
uninitialized. After that on the fail path of we'll call kfree()
for that uninitialized value.

The patch is simple - we should just initialize nodes with NULL.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/member.c