OpenCloudOS-Kernel/drivers/gpu/drm/msm/disp
Sean Paul 82e223a5d8 drm/msm: dpu: Fix memory leak caused by dropped reference
We are currently leaking a drm_crtc_commit struct for every atomic
commit containing plane state. The dpu plane destroy function cleans up
the fb reference manually, but fails to release the commit ref. As a
result, we just keep allocating drm_crtc_commits without ever freeing
them. Fortunately there's a helper function which will clean up all of
our mess at once, so use that.

Thanks to Doug Anderson for reporting the memory leak (and leaving
breadcrumbs from kmemleak!).

Reported-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-10-07 14:40:28 -04:00
..
dpu1 drm/msm: dpu: Fix memory leak caused by dropped reference 2018-10-07 14:40:28 -04:00
mdp4 drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
mdp5 drm/msm: Replace drm_framebuffer_{un/reference} with put, get functions 2018-10-03 20:24:55 -04:00
mdp_common.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
mdp_format.c drm/msm: Add modifier to mdp_get_format arguments 2018-06-03 16:48:59 -04:00
mdp_kms.c
mdp_kms.h drm/msm: Add modifier to mdp_get_format arguments 2018-06-03 16:48:59 -04:00