Julia Lawall
109f34e71b
USB: serial: digi_acceleport: Eliminate a NULL pointer dereference
...
If port is NULL, then the call to dev_err will dereference a value that is
a small offset from NULL.
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
return ...;
}
else S3
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 13:16:19 -07:00
..
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:43 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:46 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:32 -07:00
2010-05-20 13:21:48 -07:00
2010-03-02 14:55:12 -08:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:46 -07:00
2010-06-04 13:16:19 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:46 -07:00
2010-06-04 13:16:19 -07:00
2010-05-20 13:21:46 -07:00
2010-03-02 14:54:16 -08:00
2010-03-02 14:55:12 -08:00
2010-05-20 13:21:48 -07:00
2010-03-02 14:54:16 -08:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-03-02 14:54:16 -08:00
2010-05-20 13:21:50 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:50 -07:00
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:39 -07:00
2010-03-03 08:48:58 -08:00
2010-03-02 14:55:12 -08:00
2010-03-02 14:54:16 -08:00
2010-05-20 13:21:50 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:37 -07:00
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:39 -07:00
2010-06-04 13:16:18 -07:00
2010-03-02 14:54:16 -08:00
2010-03-30 22:02:32 +09:00
2010-03-02 14:54:59 -08:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:44 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:40 -07:00
2010-05-20 13:21:37 -07:00
2010-05-20 13:21:49 -07:00
2010-03-02 14:54:16 -08:00
2010-04-22 15:18:24 -07:00
2010-05-20 13:21:48 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:50 -07:00
2010-04-22 15:18:20 -07:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:37 -07:00
2010-05-20 13:21:42 -07:00
2010-05-20 13:21:37 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:47 -07:00
2010-03-02 14:54:57 -08:00
2010-03-02 14:55:09 -08:00
2010-05-20 13:21:32 -07:00