android_kernel_motorola_sm6225/drivers/net/usb
Ben Hutchings 9c412942a0 ipheth: Properly distinguish length and alignment in URBs and skbs
The USB protocol this driver implements appears to require 2 bytes of
padding in front of each received packet.  This used to be equal to
the value of NET_IP_ALIGN on x86, so the driver abused that constant
and mostly worked, but this is no longer the case.  The driver also
mixed up the URB and packet lengths, resulting in 2 bytes of junk at
the end of the skb.

Introduce a private constant for the 2 bytes of padding; fix this
confusion and check for the under-length case.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-05-08 15:45:13 -07:00
..
asix.c asix: add USB ID for Logitec LAN-GTJ U2A 2010-12-17 11:50:20 -08:00
catc.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-04-11 14:53:53 -07:00
cdc-phonet.c NET: cdc-phonet, handle empty phonet header 2011-03-14 15:24:18 -07:00
cdc_eem.c Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6 2011-04-07 11:14:49 -07:00
cdc_ether.c usbnet: add support for some Huawei modems with cdc-ether ports 2011-04-29 12:40:20 -07:00
cdc_ncm.c cdc_ncm: fix short packet issue on some devices 2011-04-24 22:35:19 -07:00
cdc_subset.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00
cx82310_eth.c cx82310_eth: allow empty URBs 2010-09-13 20:02:53 -07:00
dm9601.c Added support for usb ethernet (0x0fe6, 0x9700) 2011-02-23 14:32:28 -08:00
gl620a.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00
hso.c Merge 2.6.38-rc6 into tty-next 2011-02-24 11:36:31 -08:00
int51x1.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ipheth.c ipheth: Properly distinguish length and alignment in URBs and skbs 2011-05-08 15:45:13 -07:00
kaweth.c Fix common misspellings 2011-03-31 11:26:23 -03:00
Kconfig net/usb: Ethernet quirks for the LG-VL600 4G modem 2011-03-30 02:35:08 -07:00
lg-vl600.c net/usb: Ethernet quirks for the LG-VL600 4G modem 2011-03-30 02:35:08 -07:00
Makefile net/usb: Ethernet quirks for the LG-VL600 4G modem 2011-03-30 02:35:08 -07:00
mcs7830.c USB: mcs7830: return negative if auto negotiate fails 2010-12-23 10:21:12 -08:00
net1080.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00
pegasus.c drivers/net/usb: Remove unnecessary casts of netdev_priv 2010-11-17 10:36:52 -08:00
pegasus.h usb: pegasus: fixed coding style issues 2010-06-30 10:26:16 -07:00
plusb.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00
rndis_host.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00
rtl8150.c net: use netdev_mc_count and netdev_mc_empty when appropriate 2010-02-12 11:38:58 -08:00
sierra_net.c drivers/net: don't use flush_scheduled_work() 2010-12-12 16:45:14 +01:00
smsc75xx.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-04-11 14:53:53 -07:00
smsc75xx.h smsc75xx: SMSC LAN75xx USB gigabit ethernet adapter driver 2010-03-16 14:15:42 -07:00
smsc95xx.c smsc95xx: fix reset check 2011-05-02 15:50:58 -07:00
smsc95xx.h
usbnet.c usbnet: runtime pm: fix out of memory 2011-05-05 10:39:43 -07:00
zaurus.c usbnet: use eth%d name for known ethernet devices 2011-04-01 20:12:02 -07:00