diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-15 02:01:20 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 16:53:34 (GMT) |
commit | 3423d80af67a94a641cc3297ec8c0869aa7f197c (patch) | |
tree | 79c40fb875c0145598e05d3e7dfb93fd208a3f3b /scripts/binoffset.c | |
parent | 4ec64960653c91fa86373d06a079eb7a63deb21f (diff) | |
download | linux-fsl-qoriq-3423d80af67a94a641cc3297ec8c0869aa7f197c.tar.xz |
drivers/mmc: Move dereference after NULL test
If the NULL test on mrq is needed, then the derefernce should be after the
NULL test.
A simplified version of the semantic match that detects this problem is as
follows (http://coccinelle.lip6.fr/):
// <smpl>
@match exists@
expression x, E;
identifier fld;
@@
* x->fld
... when != \(x = E\|&x\)
* x == NULL
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/binoffset.c')
0 files changed, 0 insertions, 0 deletions