Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a95049c5 authored by Zheng Liang's avatar Zheng Liang Committed by Greg Kroah-Hartman
Browse files

rtc: pl031: fix resource leak in pl031_probe



[ Upstream commit 1eab0fea2514b269e384c117f5b5772b882761f0 ]

When devm_rtc_allocate_device is failed in pl031_probe, it should release
mem regions with device.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZheng Liang <zhengliang6@huawei.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201112093139.32566-1-zhengliang6@huawei.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e2926630
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment