diff options
author | Varad Gautam <varadgautam@google.com> | 2024-04-12 11:29:14 +0000 |
---|---|---|
committer | Varad Gautam <varadgautam@google.com> | 2024-04-12 18:05:43 +0000 |
commit | 4b50921af53f71bdc0af7c30e9df842976b375bb (patch) | |
tree | 27e61afccd898e412b567a4ed64d3a5d1615e42f | |
parent | 0bbce276ba95fc70a3aa9906c68f674ff5a7c558 (diff) | |
download | gpu-android-gs-akita-5.15-android15-beta.tar.gz |
pixel: sscd: Fix memory leaks during SSCD generationandroid-15-beta-2_r0.8android-15-beta-2_r0.7android-gs-shusky-5.15-android15-betaandroid-gs-akita-5.15-android15-beta
Dangling FW_CORE_DUMP leaks ~1M, CONTEXTS another 64B.
Bug: 332885803
Test: kmemleak no longer reports these leaks.
Change-Id: Iee92089781374c4200cff44bce4d9561a868f450
Signed-off-by: Varad Gautam <varadgautam@google.com>
-rw-r--r-- | mali_kbase/platform/pixel/pixel_gpu_sscd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mali_kbase/platform/pixel/pixel_gpu_sscd.c b/mali_kbase/platform/pixel/pixel_gpu_sscd.c index cdcb1f0..ba38c53 100644 --- a/mali_kbase/platform/pixel/pixel_gpu_sscd.c +++ b/mali_kbase/platform/pixel/pixel_gpu_sscd.c @@ -553,7 +553,8 @@ static void segments_term(struct kbase_device *kbdev, struct sscd_segment* segme kfree(segments[PM_EVENT_LOG].addr); kfree(segments[KTRACE].addr); #if MALI_USE_CSF - pixel_context_snapshot_term(segments); + pixel_context_snapshot_term(&segments[CONTEXTS]); + kfree(segments[FW_CORE_DUMP].addr); #endif /* Null out the pointers */ memset(segments, 0, sizeof(struct sscd_segment) * NUM_SEGMENTS); |