Commit e6db5780 authored by Liang He's avatar Liang He Committed by Greg Kroah-Hartman
Browse files

usb: aspeed-vhub: Fix refcount leak bug in ast_vhub_init_desc()



[ Upstream commit 220fafb4 ]

We should call of_node_put() for the reference returned by
of_get_child_by_name() which has increased the refcount.

Fixes: 30d2617f ("usb: gadget: aspeed: allow to set usb strings in device tree")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220713120528.368168-1-windhl@126.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c818fa99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment