Julia Lawall
7c19c1e80d
drivers/staging/rtl8712/rtl871x_mlme.c: eliminate a null pointer dereference
...
If ibss_wlan is NULL, it is not correct to memcpy into its field.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r@
expression E, E1;
identifier f;
statement S1,S2,S3;
@@
if (E == NULL)
{
... when != if (E == NULL || ...) 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: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-26 17:19:23 -08:00
..
2011-09-06 17:00:29 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:34 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-10-04 10:37:06 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-04-20 14:13:31 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2010-10-08 07:23:45 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:32 -07:00
2011-09-06 17:00:32 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:29 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-04-20 13:45:59 -07:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:36 -07:00
2011-04-20 14:13:31 -07:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:36 -07:00
2011-09-06 17:00:36 -07:00
2011-09-06 17:00:29 -07:00
2011-11-26 17:19:23 -08:00
2011-09-06 17:00:35 -07:00
2011-01-21 12:22:19 -08:00
2011-09-06 17:00:33 -07:00
2011-03-31 11:26:23 -03:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:32 -07:00
2011-02-28 18:24:48 -08:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:35 -07:00
2011-04-20 14:13:31 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:32 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:34 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:32 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:34 -07:00
2011-09-06 17:00:29 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:31 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:35 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-01-21 12:23:30 -08:00
2011-03-31 11:26:23 -03:00
2011-10-04 10:37:06 -07:00
2011-09-06 17:00:35 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:33 -07:00
2011-08-23 12:53:52 -07:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:29 -07:00
2011-09-06 17:00:34 -07:00
2011-09-06 17:00:34 -07:00