Skip to content
Commit 26c2b7d9 authored by Liang He's avatar Liang He Committed by Helge Deller
Browse files

video: fbdev: amba-clcd: Fix refcount leak bugs



In clcdfb_of_init_display(), we should call of_node_put() for the
references returned by of_graph_get_next_endpoint() and
of_graph_get_remote_port_parent() which have increased the refcount.

Besides, we should call of_node_put() both in fail path or when
the references are not used anymore.

Fixes: d10715be ("video: ARM CLCD: Add DT support")
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 075fbf0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment