summaryrefslogtreecommitdiff
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2023-12-11 01:52:32 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-05 20:12:56 +0000
commitec74a45e80289338ef6e76e13f13d841290a0084 (patch)
tree3be40ab26f4a36e3153b48df3eb810678fc3193c /drivers/watchdog
parent14992bc77ff44dc77b23a7389cdec7ddde3c6298 (diff)
downloadlinux-ec74a45e80289338ef6e76e13f13d841290a0084.tar.gz
linux-ec74a45e80289338ef6e76e13f13d841290a0084.tar.bz2
linux-ec74a45e80289338ef6e76e13f13d841290a0084.zip
clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
[ Upstream commit 2fbabea626b6467eb4e6c4cb7a16523da12e43b4 ] In cases where mapping of mpmu/apmu/apbc registers fails, the code path does not handle the failure gracefully, potentially leading to a memory leak. This fix ensures proper cleanup by freeing the allocated memory for 'pxa_unit' before returning. Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Link: https://lore.kernel.org/r/20231210175232.3414584-1-visitorckw@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/watchdog')
0 files changed, 0 insertions, 0 deletions