OrangePi_CM5/arch/powerpc/sysdev
Jakob Koschel bcf93175ed powerpc/sysdev: fix incorrect use to determine if list is empty
[ Upstream commit fa1321b11bd01752f5be2415e74a0e1a7c378262 ]

'gtm' will *always* be set by list_for_each_entry().
It is incorrect to assume that the iterator value will be NULL if the
list is empty.

Instead of checking the pointer it should be checked if
the list is empty.

Fixes: 83ff9dcf37 ("powerpc/sysdev: implement FSL GTM support")
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220228142434.576226-1-jakobkoschel@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:20 +02:00
..
ge
…
xics
…
xive powerpc/xive: Add missing null check after calling kmalloc 2022-01-27 10:54:09 +01:00
6xx-suspend.S
…
Kconfig
…
Makefile
…
cpm2.c
…
cpm2_pic.c
…
cpm2_pic.h
…
cpm_common.c
…
cpm_gpio.c
…
dart.h
…
dart_iommu.c
…
dcr-low.S powerpc/dcr: Use cmplwi instead of 3-argument cmpli 2021-11-26 10:39:11 +01:00
dcr.c
…
ehv_pic.c
…
fsl_85xx_cache_ctlr.h
…
fsl_85xx_cache_sram.c
…
fsl_85xx_l2ctlr.c
…
fsl_gtm.c powerpc/sysdev: fix incorrect use to determine if list is empty 2022-04-08 14:40:20 +02:00
fsl_lbc.c
…
fsl_mpic_err.c
…
fsl_mpic_timer_wakeup.c
…
fsl_msi.c
…
fsl_msi.h
…
fsl_pci.c
…
fsl_pci.h
…
fsl_pmc.c
…
fsl_rcpm.c
…
fsl_rio.c
…
fsl_rio.h
…
fsl_rmu.c
…
fsl_soc.c
…
fsl_soc.h
…
grackle.c
…
i8259.c
…
indirect_pci.c
…
ipic.c
…
ipic.h
…
mmio_nvram.c
…
mpc5xxx_clocks.c
…
mpic.c
…
mpic.h
…
mpic_msgr.c
…
mpic_msi.c
…
mpic_timer.c
…
mpic_u3msi.c
…
msi_bitmap.c
…
of_rtc.c
…
pmi.c
…
rtc_cmos_setup.c
…
tsi108_dev.c
…
tsi108_pci.c
…
udbg_memcons.c
…