Files
linux-legacy/drivers/net/usb
Julia Lawall cf95a4b52d drivers/net/usb: Correct code taking the size of a pointer
commit 6057912d7baad31be9819518674ffad349a065b1 upstream.

sizeof(dev->dev_addr) is the size of a pointer.  A few lines above, the
size of this field is obtained using netdev->addr_len for a call to memcpy,
so do the same here.

A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *x;
expression f;
type T;
@@

*f(...,(T)x,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-06 14:26:25 -08:00
..
2009-07-16 18:06:25 -07:00
2009-06-30 19:46:43 -07:00
2009-12-08 10:22:27 -08:00
2009-06-30 19:46:43 -07:00
2009-07-12 14:20:04 -07:00
2009-08-14 16:41:17 -07:00
2009-05-01 15:27:02 -07:00