linux_dsm_epyc7002/arch/arm/plat-s3c24xx
Julia Lawall 60e5c1b5ec ARM: S3C24XX: arch/arm/plat-s3c24xx: Move dereference after NULL test
If the NULL test on buf is needed, then the dereference should be after the
NULL test.

A simplified version of the semantic match that detects this problem is as
follows (http://coccinelle.lip6.fr/):

// <smpl>
@match exists@
expression x, E;
identifier fld;
@@

* x->fld
  ... when != \(x = E\|&x\)
* x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
2009-10-28 18:25:57 +00:00
..
include ARM: S3C2410: Fix link if CONFIG_S3C2410_IOTIMING is not set 2009-10-28 18:25:57 +00:00
adc.c ARM: S3C: Fix adc function exports 2009-10-28 18:25:57 +00:00
clock-dclk.c ARM: S3C24XX: Fix clkout mpx error 2009-08-14 00:45:49 +01:00
clock.c [ARM] S3C: Move core clock support to plat-s3c 2008-12-15 21:46:18 +00:00
common-smdk.c [ARM] S3C24XX: GPIO: Change to macros for GPIO numbering 2009-05-18 16:26:03 +01:00
cpu-freq-debugfs.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
cpu-freq.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
cpu.c ARM: S3C24XX: Introduce S3C2442B CPU 2009-10-28 18:25:56 +00:00
devs.c Merge branch 'next-s3c64xx-moves' into next-s3c 2009-08-14 15:24:06 +01:00
dma.c ARM: S3C24XX: arch/arm/plat-s3c24xx: Move dereference after NULL test 2009-10-28 18:25:57 +00:00
gpio.c [ARM] S3C24XX: GPIO: Fix error returns from gpio functions 2009-05-18 19:40:18 +01:00
gpiolib.c [ARM] S3C24XX: GPIO: Fix missing GPIOs in gpiolib 2009-05-18 20:20:12 +01:00
irq-pm.c [ARM] S3C: Make IRQ_EINT sleep control common 2009-03-08 12:35:36 +00:00
irq.c ARM: S3C24XX: Add FIQ IRQ routing support 2009-08-14 01:13:28 +01:00
Kconfig ARM: S3C: Add S3C_DEV_NAND Kconfig entry 2009-08-16 23:54:58 +01:00
Makefile Merge branch 'next-s3c64xx-moves' into next-s3c 2009-08-14 15:24:06 +01:00
pm-simtec.c [ARM] S3C: Rename s3c2410_pm_init to s3c_pm_init. 2009-03-08 12:35:47 +00:00
pm.c [ARM] S3C24XX: GPIO: Change to macros for GPIO numbering 2009-05-18 16:26:03 +01:00
s3c244x-clock.c [ARM] S3C24XX: Change clock locking to use spinlocks. 2008-12-15 21:46:07 +00:00
s3c244x-irq.c Merge branch 's3c-move' into devel 2008-10-14 22:24:51 +01:00
s3c244x.c [ARM] S3C: Move PM support functions to common location 2009-03-08 12:23:51 +00:00
s3c244x.h [ARM] S3C24XX: Move initialisation code to arch/arm/plat-s3c 2008-12-15 21:45:57 +00:00
s3c2410-clock.c [ARM] S3C: Update time initialisation to fix S3C64XX time problems 2008-12-16 10:13:02 +00:00
s3c2410-cpufreq-utils.c ARM: S3C2410: CPUFREQ: Add core support. 2009-07-30 23:22:52 +01:00
s3c2410-iotiming.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
s3c2412-iotiming.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
s3c2440-cpufreq.c ARM: S3C: CPUFREQ: Add debugfs support for cpufreq 2009-07-30 23:22:56 +01:00
s3c2440-pll-12000000.c ARM: S3C2440: CPUFREQ: Add PLL tables 2009-07-30 23:22:53 +01:00
s3c2440-pll-16934400.c ARM: S3C2440: CPUFREQ: Add PLL tables 2009-07-30 23:22:53 +01:00
setup-i2c.c [ARM] S3C24XX: GPIO: Change to macros for GPIO numbering 2009-05-18 16:26:03 +01:00
sleep.S [ARM] S3C: Tidy sleep code path to fix call flow 2009-03-10 11:48:07 +00:00
spi-bus0-gpe11_12_13.c [ARM] S3C24XX: Fix spi-bus configuration build errors 2009-06-23 16:16:01 +01:00
spi-bus1-gpd8_9_10.c ARM: S3C24XX: Add SPI bus 1 on GPD8 through GPD10 2009-08-14 01:26:09 +01:00
spi-bus1-gpg5_6_7.c [ARM] S3C24XX: Fix spi-bus configuration build errors 2009-06-23 16:16:01 +01:00