MALI: midgard: rk: fix a memory leak in platform specific code

Change-Id: I31ecc394c8ac971ed915b18b08d5b5cba5d440e2
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
This commit is contained in:
Zhen Chen
2018-03-13 10:40:48 +08:00
parent 1ffc1d8044
commit 25c5dc5a92

View File

@@ -151,6 +151,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;