linux/arch/mips/bcm63xx
Anastasia Belova ee9ef11bd2 MIPS: BCM63xx: Add check for NULL for clk in clk_enable
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>
2022-12-09 23:37:06 +01:00
..
boards MIPS: BCM63xx: switch to SPDX license identifier 2020-08-17 13:10:31 +02:00
clk.c MIPS: BCM63xx: Add check for NULL for clk in clk_enable 2022-12-09 23:37:06 +01:00
cpu.c MIPS: Use fallthrough for arch/mips 2020-05-07 11:55:47 +02:00
cs.c
dev-enet.c MIPS: BCM63XX: provide DMA masks for ethernet devices 2019-02-25 12:56:39 -08:00
dev-flash.c MIPS: Use fallthrough for arch/mips 2020-05-07 11:55:47 +02:00
dev-hsspi.c
dev-pcmcia.c
dev-rng.c
dev-spi.c
dev-uart.c
dev-usb-usbd.c
dev-wdt.c MIPS: BCM63XX: Provide platform data to watchdog device 2021-12-28 14:03:02 +01:00
early_printk.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00
gpio.c MIPS: BCM63XX: Use BUG_ON instead of condition followed by BUG. 2021-04-26 10:23:52 +02:00
irq.c MIPS: Replace setup_irq() by request_irq() 2020-03-05 16:47:35 +01:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile MIPS: BCM63XX: drop unused and broken DSP platform device 2018-12-31 07:12:35 -08:00
nvram.c
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
prom.c MIPS: Remove empty prom_free_prom_memory functions 2021-01-07 17:11:33 +01:00
reset.c MIPS: BCM63XX: fix switch core reset on BCM6368 2018-12-23 07:57:11 -08:00
setup.c MIPS: replace add_memory_region with memblock 2020-10-12 12:01:36 +02:00
timer.c