aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorZhaoyang Li <[email protected]>2023-03-27 19:54:22 +0800
committerFlorian Fainelli <[email protected]>2023-04-03 13:37:24 -0700
commitc3fbced9af885a6f217fd95509a613d6590916ce (patch)
tree268daf1fefa6a0485fa9b4f1095f091555d1f575 /lib/memory-notifier-error-inject.c
parent69160dd0aa6832b98d272c1a224b1aaf67cf843d (diff)
soc: bcm: brcmstb: biuctrl: fix of_iomap leak
Smatch reports: drivers/soc/bcm/brcmstb/biuctrl.c:291 setup_hifcpubiuctrl_regs() warn: 'cpubiuctrl_base' from of_iomap() not released on lines: 291. This is because in setup_hifcpubiuctrl_regs(), cpubiuctrl_base is not released when handle error, which may cause a leak. To fix this, iounmap is added when handle error. Fixes: 22f7a9116eba ("soc: brcmstb: Correct CPU_CREDIT_REG offset for Brahma-B53 CPUs") Signed-off-by: Zhaoyang Li <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions