diff options
author | Julia Lawall | 2010-06-05 01:17:37 +0200 |
---|---|---|
committer | David S. Miller | 2010-06-05 01:17:37 +0200 |
commit | 0d0659c78d7ea29ad6c3c538dcaae0227f31b9d2 (patch) | |
tree | 4383a16168096e94919c980a2cbcd7a5e81c6492 /arch/sparc/kernel/perf_event.c | |
parent | sparc64: Update defconfig. (diff) | |
download | kernel-qcow2-linux-0d0659c78d7ea29ad6c3c538dcaae0227f31b9d2.tar.gz kernel-qcow2-linux-0d0659c78d7ea29ad6c3c538dcaae0227f31b9d2.tar.xz kernel-qcow2-linux-0d0659c78d7ea29ad6c3c538dcaae0227f31b9d2.zip |
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>
Diffstat (limited to 'arch/sparc/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions