From: Viresh Kumar Date: Wed, 8 Jul 2015 09:42:16 +0000 (+0530) Subject: cpufreq: Properly handle errors from cpufreq_init_policy() X-Git-Tag: omap-for-v4.3/fixes-rc1~121^2~4^2~31^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f0fa40f5a587c2a026de776cc6a26373ac0f244;p=pandora-kernel.git cpufreq: Properly handle errors from cpufreq_init_policy() cpufreq_init_policy() can fail, and we don't do anything except a call to ->exit() on that. The policy should be freed if this happens. Do it properly. Reported-and-tested-by: "Jon Medhurst (Tixy)" Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed