From: Liang He Date: Thu, 30 Mar 2023 03:35:58 +0000 (+0800) Subject: macintosh/windfarm_smu_sat: Add missing of_node_put() X-Git-Tag: v6.4-rc1~90^2~128 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=631cf002826007ab7415258ee647dcaf8845ad5a;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Michael Ellerman Link: https://msgid.link/20230330033558.2562778-1-windhl@126.com --- diff --git a/drivers/macintosh/windfarm_smu_sat.c b/drivers/macintosh/windfarm_smu_sat.c index ebc4256a9e4a0..089f2743a070d 100644 --- a/drivers/macintosh/windfarm_smu_sat.c +++ b/drivers/macintosh/windfarm_smu_sat.c @@ -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); }