Commit 1adea7f2 authored by Liang He's avatar Liang He Committed by Li Huafei
Browse files

soc: brcmstb: pm-arm: Fix refcount leak and __iomem leak bugs

stable inclusion
from stable-v4.19.258
commit 0284b4e6dec6088a41607aa3f42bf51edff01883
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9LK64
CVE: CVE-2022-48693

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



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

[ Upstream commit 1085f508 ]

In brcmstb_pm_probe(), there are two kinds of leak bugs:

(1) we need to add of_node_put() when for_each__matching_node() breaks
(2) we need to add iounmap() for each iomap in fail path

Fixes: 0b741b82 ("soc: bcm: brcmstb: Add support for S2/S3/S5 suspend states (ARM)")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220707015620.306468-1-windhl@126.com


Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLi Huafei <lihuafei1@huawei.com>
parent d9691f55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment