OpenCloudOS-Kernel/arch/mips/sni
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
..
Makefile [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
a20r.c MIPS: Fixup last users of irq_chip->typename 2009-12-17 01:57:21 +00:00
eisa.c mips: remove driver_data direct access of struct device 2009-06-15 21:30:27 -07:00
irq.c [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
pcimt.c MIPS: Fixup last users of irq_chip->typename 2009-12-17 01:57:21 +00:00
pcit.c MIPS: Fixup last users of irq_chip->typename 2009-12-17 01:57:21 +00:00
reset.c [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
rm200.c MIPS: SNI: Correct NULL test 2010-02-10 22:15:45 +01:00
setup.c MIPS: Move several variables from .bss to .init.data 2009-12-17 01:57:27 +00:00
time.c MIPS: Add IRQF_TIMER flag for timer interrupts 2009-11-02 12:00:02 +01:00