summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
diff options
context:
space:
mode:
authorSean Paul <seanpaul@chromium.org>2018-10-04 14:09:44 -0400
committerRob Clark <robdclark@gmail.com>2018-10-07 14:40:28 -0400
commit82e223a5d854e1f19f46a1a1ad3fae311f337c9a (patch)
tree88edf4c6c8034d2e0cdbaee6d5b59884a2ddbc80 /drivers/gpu/drm/msm/adreno/a6xx_gpu.c
parentf926a2e1718edc28f59f1079ebb6832532810587 (diff)
downloadlinux-82e223a5d854e1f19f46a1a1ad3fae311f337c9a.tar.bz2
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>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a6xx_gpu.c')
0 files changed, 0 insertions, 0 deletions