Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be2cf0d3 authored by Junjie Wu's avatar Junjie Wu Committed by Matt Wagantall
Browse files

qcom-cpufreq: Use devm_kfree() to match devm_kzalloc()



Frequency table is allocated with devm_kzalloc() and thus should be
freed using devm_kfree().

Change-Id: I9c08838eadb9fc04bda9cc66596e1e0b45b3e4db
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent a8e03910
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ static int __init msm_cpufreq_probe(struct platform_device *pdev)
			if (!IS_ERR(ftbl)) {
				dev_warn(dev, "Conflicting tables for CPU%d\n",
					 cpu);
				kfree(ftbl);
				devm_kfree(dev, ftbl);
			}
			ftbl = per_cpu(freq_table, cpu - 1);
		}