OpenCloudOS-Kernel/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
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
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +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 MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
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 MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
dev-pcmcia.c MIPS: BCM63XX: Use pr_* instead of printk 2015-11-11 08:38:29 +01:00
dev-rng.c MIPS: BCM63XX: add RNG driver platform_device stub 2012-07-24 16:33:10 +02:00
dev-spi.c spi/bcm63xx: move register definitions into the driver 2015-10-23 01:19:58 +09:00
dev-uart.c MIPS: BCM63XX: add support for BCM3368 Cable Modem 2013-07-01 15:10:53 +02:00
dev-usb-usbd.c MIPS: BCM63XX: Create platform_device for USBD 2012-08-30 20:15:52 +02:00
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
nvram.c Revert "MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function" 2016-01-27 20:51:50 +01: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 MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00