Commit 2924b780 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by sanglipeng
Browse files

soc: ti: pm33xx: Fix refcount leak in am33xx_pm_probe

stable inclusion
from stable-v5.10.180
commit 08310f810975c8c9e17c6ffb99fdb76a84e8adb7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=08310f810975c8c9e17c6ffb99fdb76a84e8adb7



--------------------------------

[ Upstream commit 8f3c307b ]

wkup_m3_ipc_get() takes refcount, which should be freed by
wkup_m3_ipc_put(). Add missing refcount release in the error paths.

Fixes: 5a99ae00 ("soc: ti: pm33xx: AM437X: Add rtc_only with ddr in self-refresh support")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20230106054022.947529-1-linmq006@gmail.com


Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent b718b63c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment