diff options
| author | Julia Lawall <[email protected]> | 2009-12-15 16:46:26 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-16 07:20:01 -0800 |
| commit | d2a34c13e7ccec5d06eafd60e6f80ea531b34668 (patch) | |
| tree | 535f0ba7f4b95d53d3d871bc6a49d2fecf22b052 /include/linux | |
| parent | 2f390380ca69e1617cdddb12d8da94f0a9f4319d (diff) | |
drivers/video: Move dereference after NULL test
If the NULL test on fbi is needed, then the dereference 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 <[email protected]>
Cc: Krzysztof Helt <[email protected]>
Cc: Eric Miao <[email protected]>
Cc: Daniel Mack <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions