Commit 631cf002 authored by Liang He's avatar Liang He Committed by Michael Ellerman
Browse files

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: ac171c46 ("[PATCH] powerpc: Thermal control for dual core G5s")
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230330033558.2562778-1-windhl@126.com
parent 0398abca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}