diff options
author | Denis V. Lunev <den@openvz.org> | 2018-11-13 20:39:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-17 20:37:41 +0100 |
commit | c466461b1d4070dd60e235a22fb014ec46946676 (patch) | |
tree | c05c75770c68931709ce7afdef76154cd2a85c8d /drivers/extcon | |
parent | 5a6e4cbc18bb7ee5cff1aafd38965444ff84157a (diff) |
dlm: fix possible call to kfree() for non-initialized pointer
[ Upstream commit 58a923adf4d9aca8bf7205985c9c8fc531c65d72 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions