summaryrefslogtreecommitdiff
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2025-09-08 18:22:12 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-09-10 13:49:52 +0300
commitcdc06f912670c8c199d5fa9e78b64b7ed8e871d0 (patch)
tree191f58cde559f4be97957f5a77e15c2d4f042e18 /net/core/utils.c
parent91418337a27d800b33d6d391f565b1fa2c7ff75c (diff)
downloadlinux-cdc06f912670c8c199d5fa9e78b64b7ed8e871d0.tar.xz
cpuidle: qcom-spm: fix device and OF node leaks at probe
Make sure to drop the reference to the saw device taken by of_find_device_by_node() after retrieving its driver data during probe(). Also drop the reference to the CPU node sooner to avoid leaking it in case there is no saw node or device. Fixes: 60f3692b5f0b ("cpuidle: qcom_spm: Detach state machine from main SPM handling") Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions