]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: ti: edma: fix OF node reference leaks in edma_driver
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Thu, 19 Dec 2024 02:05:07 +0000 (11:05 +0900)
committerVinod Koul <vkoul@kernel.org>
Tue, 24 Dec 2024 09:53:32 +0000 (15:23 +0530)
commite883c64778e5a9905fce955681f8ee38c7197e0f
tree2953ffb3cb6aba887ef55f8100b466d6afa0d13d
parent0ab433180eb29bc69f9327e84028d878fb4670c5
dmaengine: ti: edma: fix OF node reference leaks in edma_driver

The .probe() of edma_driver calls of_parse_phandle_with_fixed_args() but
does not release the obtained OF nodes. Thus add a of_node_put() call.

This bug was found by an experimental verification tool that I am
developing.

Fixes: 1be5336bc7ba ("dmaengine: edma: New device tree binding")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20241219020507.1983124-3-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/edma.c