diff options
author | Maxime Ripard <maxime@cerno.tech> | 2021-11-17 10:45:26 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-11-29 15:18:00 +0100 |
commit | d354699e2292c60f25496d3c31ce4e7b1563b899 (patch) | |
tree | f9971f3e874dcf07c7ed8d2e77dd433395446548 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d134c5ff71c7f2320fc7997f2fbbdedf0c76889a (diff) |
drm/vc4: kms: Don't duplicate pending commit
Our HVS global state, when duplicated, will also copy the pointer to the
drm_crtc_commit (and increase the reference count) for each FIFO if the
pointer is not NULL.
However, our atomic_setup function will overwrite that pointer without
putting the reference back leading to a memory leak.
Since the commit is only relevant during the atomic commit process, it
doesn't make sense to duplicate the reference to the commit anyway.
Let's remove it.
Fixes: 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit")
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Tested-by: Jian-Hong Pan <jhp@endlessos.org>
Link: https://lore.kernel.org/r/20211117094527.146275-6-maxime@cerno.tech
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions