aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2010-02-06 09:42:16 +0100
committerRalf Baechle <[email protected]>2010-02-10 22:15:45 +0100
commitc2d5b5e525a354987b9c3de3661133f982bf9ba0 (patch)
tree8c315cbe3808072912d54b88dd8d8010f41c580f /net/lapb/lapb_in.c
parent63731c964d6cd9de4800891bd33b6f9e47a249bc (diff)
MIPS: SNI: Correct NULL test
Test the value that was just allocated rather than the previously tested one. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // </smpl> Signed-off-by: Julia Lawall <[email protected]> To: [email protected] To: [email protected] To: [email protected] Patchwork: http://patchwork.linux-mips.org/patch/945/ Acked-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions