Skip to content

Commit af12e64

Browse files
outman119storulf
authored andcommitted
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: 9cb1514 ("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>
1 parent 6de23f8 commit af12e64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mmc/host/mmci_qcom_dml.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ static int of_get_dml_pipe_index(struct device_node *np, const char *name)
109109
&dma_spec))
110110
return -ENODEV;
111111

112+
of_node_put(dma_spec.np);
112113
if (dma_spec.args_count)
113114
return dma_spec.args[0];
114115

0 commit comments

Comments
 (0)