Commit 92c049e
dmaengine: ti: edma: fix OF node reference leaks in edma_driver
[ Upstream commit e883c64 ]
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: 1be5336 ("dmaengine: edma: New device tree binding")
Signed-off-by: Joe Hattori <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
(cherry picked from commit a8b03b47057b7674f25350b74bbc5d0326a4d541)1 parent 5c7bb0c commit 92c049e
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | 211 | | |
213 | 212 | | |
214 | 213 | | |
| |||
2466 | 2465 | | |
2467 | 2466 | | |
2468 | 2467 | | |
2469 | | - | |
2470 | 2468 | | |
2471 | 2469 | | |
2472 | 2470 | | |
2473 | 2471 | | |
2474 | 2472 | | |
2475 | 2473 | | |
| 2474 | + | |
2476 | 2475 | | |
2477 | 2476 | | |
2478 | 2477 | | |
| |||
0 commit comments