Revision cfca31ce789963c0dd6ca2e9cc13b90cc2802fbd authored by Julia Lawall on 27 May 2010, 12:32:24 UTC, committed by Wim Van Sebroeck on 07 June 2010, 15:55:03 UTC
At the point of the call to dev_err, wm8350 is NULL.

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>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

1 parent 386f40c
History
File Mode Size
Kconfig -rw-r--r-- 2.8 KB
Makefile -rw-r--r-- 711 bytes
array.c -rw-r--r-- 13.3 KB
base.c -rw-r--r-- 76.0 KB
cmdline.c -rw-r--r-- 651 bytes
cpuinfo.c -rw-r--r-- 564 bytes
devices.c -rw-r--r-- 1.4 KB
generic.c -rw-r--r-- 19.5 KB
inode.c -rw-r--r-- 11.8 KB
internal.h -rw-r--r-- 3.8 KB
interrupts.c -rw-r--r-- 1.1 KB
kcore.c -rw-r--r-- 15.2 KB
kmsg.c -rw-r--r-- 1.5 KB
loadavg.c -rw-r--r-- 1.1 KB
meminfo.c -rw-r--r-- 4.5 KB
mmu.c -rw-r--r-- 1.4 KB
nommu.c -rw-r--r-- 3.3 KB
page.c -rw-r--r-- 4.8 KB
proc_devtree.c -rw-r--r-- 5.2 KB
proc_net.c -rw-r--r-- 4.6 KB
proc_sysctl.c -rw-r--r-- 9.5 KB
proc_tty.c -rw-r--r-- 4.7 KB
root.c -rw-r--r-- 4.7 KB
softirqs.c -rw-r--r-- 994 bytes
stat.c -rw-r--r-- 5.0 KB
task_mmu.c -rw-r--r-- 20.3 KB
task_nommu.c -rw-r--r-- 5.7 KB
uptime.c -rw-r--r-- 1.2 KB
version.c -rw-r--r-- 761 bytes
vmcore.c -rw-r--r-- 16.1 KB

back to top