projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f49bb
)
macintosh/windfarm_smu_sat: Add missing of_node_put()
author
Liang He
<windhl@126.com>
Thu, 30 Mar 2023 03:35:58 +0000
(11:35 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:31 +0000
(23:03 +0900)
[ Upstream commit
631cf002826007ab7415258ee647dcaf8845ad5a
]
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 <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://msgid.link/20230330033558.2562778-1-windhl@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/macintosh/windfarm_smu_sat.c
patch
|
blob
|
history
diff --git
a/drivers/macintosh/windfarm_smu_sat.c
b/drivers/macintosh/windfarm_smu_sat.c
index
be5d459
..
98fb31e
100644
(file)
--- 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);
}