linux/drivers/staging/dt3155
Julia Lawall c60e55f30a Staging: Eliminate a NULL pointer dereference
Eliminate a NULL or near NULL pointer dereference.

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
  return ...;
}
else S3
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 13:38:57 -07:00
..
Kconfig Staging: dt3155: add it to the build 2010-03-03 16:42:31 -08:00
Makefile Staging: dt3155: add it to the build 2010-03-03 16:42:31 -08:00
TODO Staging: dt3155: add TODO file 2010-03-03 16:42:31 -08:00
allocator.README Staging: add dt3155 driver 2010-03-03 16:42:31 -08:00
allocator.c Staging: Eliminate a NULL pointer dereference 2010-06-04 13:38:57 -07:00
allocator.h Staging: dt3155: allocator.c: sparse cleanups 2010-05-11 11:35:40 -07:00
dt3155.h Staging: dt3155: rename dt3155_fbuffer_s 2010-05-11 11:35:41 -07:00
dt3155.sysvinit Staging: add dt3155 driver 2010-03-03 16:42:31 -08:00
dt3155_drv.c Merge staging-next tree into Linus's latest version 2010-05-21 12:48:55 -07:00
dt3155_drv.h Staging: dt3155: replace u_int and u_long usage 2010-03-03 16:42:56 -08:00
dt3155_io.c Staging: dt3155: fix wait_ibsyclr function 2010-05-11 11:35:36 -07:00
dt3155_io.h staging: dt3155: revert u_long to u64 usage 2010-03-03 16:43:07 -08:00
dt3155_isr.c Staging: dt3155: remove "inline" usage 2010-05-11 11:35:41 -07:00
dt3155_isr.h Staging: dt3155: rename dt3155_fbuffer_s 2010-05-11 11:35:41 -07:00