drm/vc4: Fix memory leak during BO teardown
authorDaniel J Blueman <daniel@quora.org>
Mon, 2 Apr 2018 07:10:35 +0000 (15:10 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2018 19:42:08 +0000 (12:42 -0700)
commitc0db1b677e1d584fab5d7ac76a32e1c0157542e0
tree4c85b772694f32ef50ff55ac338a9f6020015658
parent5a9f698feb11b198f17b2acebbfe0e2716a3beed
drm/vc4: Fix memory leak during BO teardown

During BO teardown, an indirect list 'uniform_addr_offsets' wasn't being
freed leading to leaking many 128B allocations. Fix the memory leak by
releasing it at teardown time.

Cc: stable@vger.kernel.org
Fixes: 6d45c81d229d ("drm/vc4: Add support for branching in shader validation.")
Signed-off-by: Daniel J Blueman <daniel@quora.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180402071035.25356-1-daniel@quora.org
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_validate_shaders.c