summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2024-04-15 13:53:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-17 13:01:58 +0300
commit026e24cf31733dbd97f41cc9bc5273ace428eeec (patch)
treec918f1c15011a4685811bf768525fa50071fd72f /drivers/regulator
parent109b9ecdcb0432bfc0f1bb8bfbe851c467ee5033 (diff)
downloadlinux-026e24cf31733dbd97f41cc9bc5273ace428eeec.tar.xz
pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map()
[ Upstream commit a0cedbcc8852d6c77b00634b81e41f17f29d9404 ] If we fail to allocate propname buffer, we need to drop the reference count we just took. Because the pinctrl_dt_free_maps() includes the droping operation, here we call it directly. Fixes: 91d5c5060ee2 ("pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map") Suggested-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Zeng Heng <zengheng4@huawei.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Message-ID: <20240415105328.3651441-1-zengheng4@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions