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 <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2011-05-08 15:45:13 -07:00
..
accessibility
acpi
Fix common misspellings
2011-03-31 11:26:23 -03:00
amba
Fix common misspellings
2011-03-31 11:26:23 -03:00
ata
Fix common misspellings
2011-03-31 11:26:23 -03:00
atm
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
auxdisplay
Fix common misspellings
2011-03-31 11:26:23 -03:00
base
Fix common misspellings
2011-03-31 11:26:23 -03:00
block
Fix common misspellings
2011-03-31 11:26:23 -03:00
bluetooth
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
cdrom
Fix common misspellings
2011-03-31 11:26:23 -03:00
char
Fix common misspellings
2011-03-31 11:26:23 -03:00
clk
clocksource
connector
connector: fix skb double free in cn_rx_skb()
2011-04-12 14:38:57 -07:00
cpufreq
Fix common misspellings
2011-03-31 11:26:23 -03:00
cpuidle
crypto
Fix common misspellings
2011-03-31 11:26:23 -03:00
dca
dio
dma
Merge branch 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
2011-04-07 12:48:45 -07:00
edac
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
eisa
firewire
Fix common misspellings
2011-03-31 11:26:23 -03:00
firmware
gpio
Fix common misspellings
2011-03-31 11:26:23 -03:00
gpu
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
hid
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
hwmon
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
hwspinlock
i2c
Fix common misspellings
2011-03-31 11:26:23 -03:00
ide
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
idle
ieee802154
infiniband
Fix common misspellings
2011-03-31 11:26:23 -03:00
input
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
isdn
Fix common misspellings
2011-03-31 11:26:23 -03:00
leds
Fix common misspellings
2011-03-31 11:26:23 -03:00
lguest
Fix common misspellings
2011-03-31 11:26:23 -03:00
macintosh
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
mca
md
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
media
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
memstick
Fix common misspellings
2011-03-31 11:26:23 -03:00
message
Fix common misspellings
2011-03-31 11:26:23 -03:00
mfd
Fix common misspellings
2011-03-31 11:26:23 -03:00
misc
Fix common misspellings
2011-03-31 11:26:23 -03:00
mmc
Fix common misspellings
2011-03-31 11:26:23 -03:00
mtd
Merge git://git.infradead.org/mtd-2.6
2011-04-09 13:23:50 -07:00
net
ipheth: Properly distinguish length and alignment in URBs and skbs
2011-05-08 15:45:13 -07:00
nfc
nubus
of
Fix common misspellings
2011-03-31 11:26:23 -03:00
oprofile
parisc
Fix common misspellings
2011-03-31 11:26:23 -03:00
parport
Fix common misspellings
2011-03-31 11:26:23 -03:00
pci
pci: fix PCI bus allocation alignment handling
2011-04-11 10:53:11 -07:00
pcmcia
Fix common misspellings
2011-03-31 11:26:23 -03:00
platform
Fix common misspellings
2011-03-31 11:26:23 -03:00
pnp
Fix common misspellings
2011-03-31 11:26:23 -03:00
power
drivers: Final irq namespace conversion
2011-03-29 14:48:19 +02:00
pps
Fix common misspellings
2011-03-31 11:26:23 -03:00
ps3
Fix common misspellings
2011-03-31 11:26:23 -03:00
rapidio
Fix common misspellings
2011-03-31 11:26:23 -03:00
regulator
Fix common misspellings
2011-03-31 11:26:23 -03:00
rtc
Merge branches 'x86-fixes-for-linus', 'sched-fixes-for-linus', 'timers-fixes-for-linus', 'irq-fixes-for-linus' and 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
2011-04-07 12:12:58 -07:00
s390
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
2011-04-08 07:36:14 -07:00
sbus
Fix common misspellings
2011-03-31 11:26:23 -03:00
scsi
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
sfi
Fix common misspellings
2011-03-31 11:26:23 -03:00
sh
sh: Fix irq cleanup fallout
2011-03-30 00:15:49 +02:00
sn
spi
Fix common misspellings
2011-03-31 11:26:23 -03:00
ssb
Fix common misspellings
2011-03-31 11:26:23 -03:00
staging
Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6
2011-04-07 11:36:44 -07:00
target
Fix common misspellings
2011-03-31 11:26:23 -03:00
tc
telephony
Fix common misspellings
2011-03-31 11:26:23 -03:00
thermal
tty
Merge branch 'sh-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
2011-04-07 12:48:45 -07:00
uio
Fix common misspellings
2011-03-31 11:26:23 -03:00
usb
Merge branch 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6
2011-04-07 11:14:49 -07:00
uwb
Fix common misspellings
2011-03-31 11:26:23 -03:00
vhost
video
Merge branch 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6
2011-04-07 12:49:17 -07:00
virtio
vlynq
vlynq: Convert irq functions
2011-03-28 19:33:04 +02:00
w1
Fix common misspellings
2011-03-31 11:26:23 -03:00
watchdog
watchdog: mpc8xxx_wdt: fix build
2011-04-07 20:20:24 +00:00
xen
Fix common misspellings
2011-03-31 11:26:23 -03:00
zorro
Kconfig
Makefile