linux/arch/sparc
Julia Lawall 0d0659c78d arch/sparc/kernel: Eliminate what looks like a NULL pointer dereference
At the point of the test, action cannot be NULL, as it has been dereferenced
in the code just above.

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

// <smpl>
@r exists@
expression E,E1;
identifier f;
statement S1,S2,S3;
@@

if ((E == NULL && ...) || ...)
{
  ... when != if (...) S1 else S2
      when != E = E1
* E->f
  ... when any
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-04 16:17:37 -07:00
..
boot arch/sparc/boot/*.c: Mark various internal functions static 2009-11-15 15:01:40 -08:00
configs sparc64: Update defconfig. 2010-05-26 21:18:23 -07:00
include/asm sparc32: Kill none_mask, it's bogus. 2010-05-25 23:36:31 -07:00
kernel arch/sparc/kernel: Eliminate what looks like a NULL pointer dereference 2010-06-04 16:17:37 -07:00
lib sparc64: Allocate sufficient stack space in ftrace stubs. 2010-04-13 18:59:02 -07:00
math-emu endian: #define __BYTE_ORDER 2010-05-25 08:07:02 -07:00
mm sparc32: Kill none_mask, it's bogus. 2010-05-25 23:36:31 -07:00
oprofile sparc: using HZ needs an include of linux/param.h 2009-10-05 00:46:08 -07:00
prom sparc64: Make prom entry spinlock NMI safe. 2010-03-03 09:06:03 -08:00
Kconfig Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-05-19 17:10:06 -07:00
Kconfig.debug sparc64: Kill CONFIG_STACK_DEBUG code. 2010-04-12 22:36:03 -07:00
Makefile sparc: Set UTS_MACHINE correctly. 2009-12-05 17:17:55 -08:00