macintosh/windfarm_smu_sat: Add missing of_node_put()
PATCH 1/1 macintosh/windfarm_smu_sat: Add missing of_node_put()
We call of_node_get() in wf_sat_probe() after sat is created, so we need the of_node_put() before *kfree(sat)*.
Fixes ac171c46667c ("[PATCH] powerpc: Thermal control for dual core G5s")
Signed-off-by Liang He <[email protected]>
--- drivers/macintosh/windfarm_smu_sat.c | 1 + 1 file changed, 1 insertion(+)
drivers/macintosh/windfarm_smu_sat.c +1 -0
@@ -171,6 +171,7 @@ static void wf_sat_release(struct kref *ref)if (sat->nr >=0 ) sats[sat->nr] =NULL ; +of_node_put (sat->node);kfree (sat); }
Signature · 1 line
2.25.1
Michael Ellerman
AppliedQuoted 4 lines · Liang He
We call
of_node_get()inwf_sat_probe()after sat is created, so we need theof_node_put()before *kfree(sat)*.
Applied to powerpc/next.
[1/1] macintosh/windfarm_smu_sat: Add missing of_node_put()
https://git.kernel.org/powerpc/c/631cf002826007ab7415258ee647dcaf8845ad5a
cheers