Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Felix Gu and committed by
Ulf Hansson
af12e64a 6de23f81

+1
+1
drivers/mmc/host/mmci_qcom_dml.c
··· 109 109 &dma_spec)) 110 110 return -ENODEV; 111 111 112 + of_node_put(dma_spec.np); 112 113 if (dma_spec.args_count) 113 114 return dma_spec.args[0]; 114 115