commit | a13ab26a27759d7234943912de46f2f3198c05c2 | [log] [tgz] |
---|---|---|
author | Nicolas Boichat <drinkcat@chromium.org> | Mon Apr 08 16:06:20 2019 +0800 |
committer | Fabien Parent <parent.f@gmail.com> | Fri May 29 09:54:40 2020 +0000 |
tree | 1f611b2262191403746da080969bc468205e4430 | |
parent | ab55140d30b7f1e1615563238c810019d6617ff0 [diff] |
CHROMIUM: FIXUP: Fix mali_devfreq for platform other than mediatek. We dropped an important return 0, causing mfg to be freed, and reused after free. BUG=b:121277411 TEST=boot kukui, no more crashes Change-Id: Ieffbad9677415a91d3ce7e498be65f2a98cdbd23 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Eddie Huang <eddie.huang@mediatek.com> Reviewed-on: https://chromium-review.googlesource.com/1556979
diff --git a/drivers/gpu/arm/midgard/platform/mediatek/mali_kbase_runtime_pm.c b/drivers/gpu/arm/midgard/platform/mediatek/mali_kbase_runtime_pm.c index 9922246..79418bd 100644 --- a/drivers/gpu/arm/midgard/platform/mediatek/mali_kbase_runtime_pm.c +++ b/drivers/gpu/arm/midgard/platform/mediatek/mali_kbase_runtime_pm.c
@@ -472,6 +472,8 @@ #endif kbdev->devfreq_ops.voltage_range_check = voltage_range_check; + return 0; + platform_init_err: kfree(mfg); return err;