]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mmc: mmci: Fix device_node reference leak in of_get_dml_pipe_index()
authorFelix Gu <ustc.gu@gmail.com>
Tue, 20 Jan 2026 14:26:46 +0000 (22:26 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Feb 2026 11:05:20 +0000 (12:05 +0100)
commitaf12e64ae0661546e8b4f5d30d55c5f53a11efe7
treefa90a20d85960b93a44d4232a3643819431106aa
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
mmc: mmci: Fix device_node reference leak in of_get_dml_pipe_index()

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In of_get_dml_pipe_index(), it does not release the reference.

Fixes: 9cb15142d0e3 ("mmc: mmci: Add qcom dml support to the driver.")
Signed-off-by: Felix Gu <gu_0233@qq.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mmci_qcom_dml.c