Commit a9692616 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

cpuidle: qcom-spm: fix device and OF node leaks at probe



[ Upstream commit cdc06f91 ]

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: 60f3692b ("cpuidle: qcom_spm: Detach state machine from main SPM handling")
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f3dc08dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment