ARM: tegra: edp: Fix resource leak
Diwakar Tundlam [Tue, 10 Dec 2013 23:00:18 +0000 (15:00 -0800)]
Do not free IN-USE pointer edp_gpu_calculated_limits.

Partial revert of commit 4f9d8923268a597ede0308f4165e46ba97375ffe
(Improperly)-Reviewed-on: http://git-master/r/339061

Bug 1416640

Change-Id: Ie084fb93ccd32b9358ebf1e0331b877c104e397f
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/343845
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/edp.c

index fddbe1c..bbf87eb 100644 (file)
@@ -897,7 +897,6 @@ static int init_gpu_edp_limits_calculated(void)
                edp_gpu_limits_size = ARRAY_SIZE(gpu_temperatures);
        }
 
-       kfree(edp_gpu_calculated_limits);
        kfree(freq_voltage_gpu_lut);
 
        return 0;