thermal: of: fix cleanup when building a thermal zone
authorUlises Brindis <brindisu@lab126.com>
Fri, 25 Mar 2016 19:55:41 +0000 (12:55 -0700)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 17 May 2016 14:28:24 +0000 (07:28 -0700)
commit1cd91c1820801267b5579fa65842cdf843c73c4d
tree4824374f73a5e5f9a93057bc0e3518e422ea1fb7
parentc212ed912b73f804d5f897ec0a84f58dfd3da9e1
thermal: of: fix cleanup when building a thermal zone

of_node_put is iterating through all terms in the tbps array even though
the bind has failed. We need to only iterate through the terms that have
already passed the binding step.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <edubezval@gmail.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ulises Brindis <brindisu@lab126.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/of-thermal.c
This page took 0.024683 seconds and 5 git commands to generate.