acrn-kernel/arch/mips/bcm63xx
Anastasia Belova 412bd425cc MIPS: BCM63xx: Add check for NULL for clk in clk_enable
[ Upstream commit ee9ef11bd2 ]

Check clk for NULL before calling clk_enable_unlocked where clk
is dereferenced. There is such check in other implementations
of clk_enable.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e7300d04bd ("MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:00 +01:00
..
boards
Kconfig
Makefile
Platform
clk.c MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2022-12-31 13:32:00 +01:00
cpu.c
cs.c
dev-enet.c
dev-flash.c
dev-hsspi.c
dev-pcmcia.c
dev-rng.c
dev-spi.c
dev-uart.c
dev-usb-usbd.c
dev-wdt.c
early_printk.c
gpio.c
irq.c
nvram.c
prom.c
reset.c
setup.c
timer.c