android_kernel_xiaomi_sm8350/drivers/net/usb
Julia Lawall 6057912d7b drivers/net/usb: Correct code taking the size of a pointer
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>
2009-12-13 19:56:35 -08:00
..
asix.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
catc.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
cdc_eem.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
cdc_ether.c usbnet & cdc-ether: Autosuspend for online devices 2009-12-03 15:31:18 -08:00
cdc_subset.c
cdc-phonet.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
dm9601.c usbnet: Set link down initially for drivers that update link state 2009-11-10 20:54:40 -08:00
gl620a.c
hso.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
int51x1.c
kaweth.c usb: remove rare pm primitive for conversion to new API 2009-12-11 21:43:00 -08:00
Kconfig cdc_ether: additional Ericsson MBM PID's to the whitelist 2009-11-04 05:25:02 -08:00
Makefile
mcs7830.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
net1080.c
pegasus.c
pegasus.h
plusb.c
rndis_host.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00
rtl8150.c drivers/net/usb: Correct code taking the size of a pointer 2009-12-13 19:56:35 -08:00
smsc95xx.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
smsc95xx.h
usbnet.c usbnet & cdc-ether: Autosuspend for online devices 2009-12-03 15:31:18 -08:00
zaurus.c drivers/net: Move && and || to end of previous line 2009-12-03 13:18:01 -08:00