diff options
author | Liang He <[email protected]> | 2022-07-26 09:07:22 +0800 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2022-08-08 09:46:22 +0200 |
commit | 91b3c8dbe898df158fd2a84675f3a284ff6666f7 (patch) | |
tree | 6f46b3b202df5904035527d54c46daad990e7b4b /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | c20ee5749a3f688d9bab83a3b09b75587153ff13 (diff) |
drm/meson: Fix refcount bugs in meson_vpu_has_available_connectors()
In this function, there are two refcount leak bugs:
(1) when breaking out of for_each_endpoint_of_node(), we need call
the of_node_put() for the 'ep';
(2) we should call of_node_put() for the reference returned by
of_graph_get_remote_port() when it is not used anymore.
Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller")
Signed-off-by: Liang He <[email protected]>
Acked-by: Martin Blumenstingl <[email protected]>
Acked-by: Neil Armstrong <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions