summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-02-14 23:14:51 +0800
committerSasha Levin <sashal@kernel.org>2026-03-12 07:09:42 -0400
commit63ee429780a5d43b5b4406c6128109b0f47cf2f1 (patch)
treec0d149b05ea79854dc8e6450533e200fe9c7b085 /include
parent17e37232a86a959c507b5844b2d62b50b75058ec (diff)
pinctrl: pinconf-generic: Fix memory leak in pinconf_generic_parse_dt_config()
[ Upstream commit 7a648d598cb8e8c62af3f0e020a25820a3f3a9a7 ] In pinconf_generic_parse_dt_config(), if parse_dt_cfg() fails, it returns directly. This bypasses the cleanup logic and results in a memory leak of the cfg buffer. Fix this by jumping to the out label on failure, ensuring kfree(cfg) is called before returning. Fixes: 90a18c512884 ("pinctrl: pinconf-generic: Handle string values for generic properties") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Reviewed-by: Antonio Borneo <antonio.borneo@foss.st.com> Signed-off-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions