linux/arch/arm/mach-ep93xx
Alexander Sverdlin 3b68b08885
ep93xx: clock: Fix UAF in ep93xx_clk_register_gate()
arch/arm/mach-ep93xx/clock.c:154:2: warning: Use of memory after it is freed [clang-analyzer-unix.Malloc]
arch/arm/mach-ep93xx/clock.c:151:2: note: Taking true branch
if (IS_ERR(clk))
^
arch/arm/mach-ep93xx/clock.c:152:3: note: Memory is released
kfree(psc);
^~~~~~~~~~
arch/arm/mach-ep93xx/clock.c:154:2: note: Use of memory after it is freed
return &psc->hw;
^ ~~~~~~~~

Fixes: 9645ccc7bd ("ep93xx: clock: convert in-place to COMMON_CLK")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/B5YCO2NJEXINCYE26Y255LCVMO55BGWW/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-07 13:55:52 +02:00
..
include/mach treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
adssphere.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
clock.c ep93xx: clock: Fix UAF in ep93xx_clk_register_gate() 2022-04-07 13:55:52 +02:00
core.c ep93xx: clock: convert in-place to COMMON_CLK 2021-10-20 17:46:36 +02:00
dma.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
edb93xx.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
gesbc9312.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
gpio-ep93xx.h ARM: ep93xx: move private headers out of mach/* 2019-04-28 23:08:44 -07:00
hardware.h ARM: ep93xx: move private headers out of mach/* 2019-04-28 23:08:44 -07:00
Kconfig ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
Makefile ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
Makefile.boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
micro9.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
platform.h ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
simone.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
snappercl15.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
soc.h ep93xx: clock: convert in-place to COMMON_CLK 2021-10-20 17:46:36 +02:00
timer-ep93xx.c ARM: ep93xx: Replace setup_irq() by request_irq() 2020-03-27 14:11:42 +01:00
ts72xx.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00
ts72xx.h ARM: ep93xx: ts72xx: Add support for BK3 board - ts72xx derivative 2017-12-13 22:26:10 +01:00
vision_ep9307.c ARM: ep93xx: remove MaverickCrunch support 2021-08-04 13:30:04 +02:00