android_kernel_motorola_sm6375/drivers/amba
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Peng Fan 03db4fe791 amba: bus: fix refcount leak
[ Upstream commit e312cbdc11305568554a9e18a2ea5c2492c183f3 ]

commit 5de1540b7b ("drivers/amba: create devices from device tree")
increases the refcount of of_node, but not releases it in
amba_device_release, so there is refcount leak. By using of_node_put
to avoid refcount leak.

Fixes: 5de1540b7b ("drivers/amba: create devices from device tree")
Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-09-23 10:59:52 +02:00
..
bus.c amba: bus: fix refcount leak 2023-09-23 10:59:52 +02:00
Kconfig
Makefile
tegra-ahb.c