[PATCH v1 10/10] drm/msm/a6xx: Free gmu_debug crashstate bo
Akhil P Oommen
quic_akhilpo at quicinc.com
Wed Mar 2 17:27:36 UTC 2022
Free gmu_debug bo while destroying the gpu crashstate.
Signed-off-by: Akhil P Oommen <quic_akhilpo at quicinc.com>
---
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
index 4d4588a..09bb993 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c
@@ -1054,6 +1054,9 @@ static void a6xx_gpu_state_destroy(struct kref *kref)
if (a6xx_state->gmu_hfi)
kvfree(a6xx_state->gmu_hfi->data);
+ if (a6xx_state->gmu_debug)
+ kvfree(a6xx_state->gmu_debug->data);
+
list_for_each_entry_safe(obj, tmp, &a6xx_state->objs, node)
kfree(obj);
--
2.7.4
More information about the dri-devel
mailing list