Files
linux/drivers
Julia Lawall dc6eb27bdd USB: host: Eliminate NULL dereference
The test above allows std to be NULL, so check that std is not NULL before
doing the dereference.

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: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-10 14:35:34 -07:00
..
…
…
…
2010-08-04 11:16:01 +02:00
…
…
…
…
2010-08-10 11:49:21 -07:00
…
2010-08-03 11:55:15 -04:00
…
2010-08-05 13:26:20 +01:00
…
…
…
…
…
…
…
2010-08-10 14:35:34 -07:00
…
…
…
…