From: Dan Carpenter Date: Tue, 16 Dec 2014 23:55:53 +0000 (+0300) Subject: thermal: cpu_cooling: small memory leak on error X-Git-Tag: fixes-v4.0-rc1~365^2^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d2e95ea8f124869b96ad929d1701bd64844a06a;p=pandora-kernel.git thermal: cpu_cooling: small memory leak on error There was a left over return here so the error handling isn't run. It leads to a small memory leak and a static checker warning. drivers/thermal/cpu_cooling.c:351 __cpufreq_cooling_register() info: ignoring unreachable code. Fixes: f6859014c7e7 ("thermal: cpu_cooling: Store frequencies in descending order") Acked-by: Viresh Kumar Signed-off-by: Dan Carpenter Signed-off-by: Eduardo Valentin --- Reading git-diff-tree failed