diff options
| author | Javier Carrasco <[email protected]> | 2024-06-24 23:10:06 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-07-03 16:04:10 +0200 |
| commit | c7a5403ea04320e08f2595baa940541a59a3856e (patch) | |
| tree | d735145089426b3c6645fc084711aba253d80aee /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | 3859e85de30815a20bce7db712ce3d94d40a682d (diff) | |
usb: core: add missing of_node_put() in usb_of_has_devices_or_graph
The for_each_child_of_node() macro requires an explicit call to
of_node_put() on early exits to decrement the child refcount and avoid a
memory leak.
The child node is not required outsie the loop, and the resource must be
released before the function returns.
Add the missing of_node_put().
Cc: [email protected]
Fixes: 82e82130a78b ("usb: core: Set connect_type of ports based on DT node")
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions