mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
MALI: bifrost: rk: fix a memory leak in platform specific code
Change-Id: I88a8614742b9663454349d09b84e63998f0aeb66 Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
@@ -172,6 +172,7 @@ static void kbase_platform_rk_term(struct kbase_device *kbdev)
|
||||
kbdev->platform_context = NULL;
|
||||
|
||||
if (platform) {
|
||||
cancel_delayed_work_sync(&platform->work);
|
||||
wake_lock_destroy(&platform->wake_lock);
|
||||
destroy_workqueue(platform->power_off_wq);
|
||||
platform->is_powered = false;
|
||||
|
||||
Reference in New Issue
Block a user