diff options
author | Debarshi Dutta <debarshid@google.com> | 2023-08-07 09:47:30 +0000 |
---|---|---|
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-08-14 16:01:46 +0000 |
commit | 4ed75fc737b2998ba1e17d77efca4f7e91d402b3 (patch) | |
tree | 28e788e2dc440c5d1e3bc1b125307201fb001153 /mali_kbase | |
parent | c845dfc7713e44306c03d9a0ea73bb5625db09f7 (diff) | |
download | gpu-4ed75fc737b2998ba1e17d77efca4f7e91d402b3.tar.gz |
mali_kbase: add missing deinitialization
Invoke kbase_csf_tiler_heap_context_term() after an unsuccessful call
to kbasep_ctx_user_reg_page_mapping_init().
Bug 294759508
Change-Id: I6ef97a6e69042ab9e2351939d23e09cf4ec83216
Signed-off-by: Debarshi Dutta <debarshid@google.com>
Diffstat (limited to 'mali_kbase')
-rw-r--r-- | mali_kbase/csf/mali_kbase_csf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mali_kbase/csf/mali_kbase_csf.c b/mali_kbase/csf/mali_kbase_csf.c index c3d34b3..239d9de 100644 --- a/mali_kbase/csf/mali_kbase_csf.c +++ b/mali_kbase/csf/mali_kbase_csf.c @@ -1709,10 +1709,12 @@ int kbase_csf_ctx_init(struct kbase_context *kctx) err = kbasep_ctx_user_reg_page_mapping_init(kctx); if (unlikely(err)) - goto out_err_tiler_heap_context; + goto out_err_user_reg_page_mapping_init; return err; +out_err_user_reg_page_mapping_init: + kbase_csf_tiler_heap_context_term(kctx); out_err_tiler_heap_context: kbase_csf_kcpu_queue_context_term(kctx); out_err_kcpu_queue_context: |