android_kernel_xiaomi_sm8350/arch
Julia Lawall c2d5b5e525 MIPS: SNI: Correct NULL test
Test the value that was just allocated rather than the previously tested one.

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

// <smpl>
@r@
expression *x;
expression e;
identifier l;
@@

if (x == NULL || ...) {
    ... when forall
    return ...; }
... when != goto l;
    when != x = e
    when != &x
*x == NULL
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
To: linux-mips@linux-mips.org
To: linux-kernel@vger.kernel.org
To: kernel-janitors@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/945/
Acked-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-02-10 22:15:45 +01:00
..
alpha
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2010-02-04 16:09:01 -08:00
avr32
blackfin
cris
frv
h8300
ia64
m32r
m68k
m68knommu m68knommu: fix invalid flags on coldfire pit clocksource 2010-01-16 12:15:38 -08:00
microblaze microblaze: Invalidate dcache before enabling it 2010-02-08 11:39:18 +01:00
mips MIPS: SNI: Correct NULL test 2010-02-10 22:15:45 +01:00
mn10300
parisc
powerpc powerpc: Fix address masking bug in hpte_need_flush() 2010-02-10 13:58:06 +11:00
s390 [S390] Fix struct _lowcore layout. 2010-02-09 09:46:23 +01:00
score
sh sh: Remove superfluous setup_frame_reg call 2010-02-08 10:47:11 +09:00
sparc sparc: TIF_ABI_PENDING bit removal 2010-01-29 08:22:01 -08:00
um
x86 Merge branch 'kvm-updates/2.6.33' of git://git.kernel.org/pub/scm/virt/kvm/kvm 2010-02-10 07:18:15 -08:00
xtensa
.gitignore
Kconfig