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-- 3.4 KB
Makefile -rw-r--r-- 388 bytes
acl.c -rw-r--r-- 10.4 KB
acl.h -rw-r--r-- 1.5 KB
balloc.c -rw-r--r-- 54.6 KB
bitmap.c -rw-r--r-- 702 bytes
dir.c -rw-r--r-- 13.5 KB
ext3_jbd.c -rw-r--r-- 1.5 KB
file.c -rw-r--r-- 2.2 KB
fsync.c -rw-r--r-- 2.9 KB
hash.c -rw-r--r-- 4.3 KB
ialloc.c -rw-r--r-- 21.1 KB
inode.c -rw-r--r-- 100.7 KB
ioctl.c -rw-r--r-- 7.7 KB
namei.c -rw-r--r-- 66.8 KB
namei.h -rw-r--r-- 170 bytes
resize.c -rw-r--r-- 33.5 KB
super.c -rw-r--r-- 83.2 KB
symlink.c -rw-r--r-- 1.4 KB
xattr.c -rw-r--r-- 34.6 KB
xattr.h -rw-r--r-- 3.8 KB
xattr_security.c -rw-r--r-- 1.9 KB
xattr_trusted.c -rw-r--r-- 1.5 KB
xattr_user.c -rw-r--r-- 1.6 KB

back to top