From: Lucas Stach Date: Fri, 26 Sep 2014 13:33:46 +0000 (+0200) Subject: cpufreq: cpufreq-dt: fix potential double put of cpu OF node X-Git-Tag: omap-for-v3.19/prcm-cleanup~135^2~3^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9739d27059d8fd7b64096ea7251608628b5bd30;p=pandora-kernel.git cpufreq: cpufreq-dt: fix potential double put of cpu OF node If cpufreq_generic_init() fails we jump into the resource cleanup path which contains a of_node_put() call. Another instance of this has already been called at that time resulting a double decrement of the refcount. Fix this by calling of_node_put() only after we are sure that nothing has gone wrong. Fixes: d2f31f1da54f "cpufreq: cpu0: Move per-cluster initialization code to ->init()" Signed-off-by: Lucas Stach Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed