kernel-hacking-2024-linux-s.../drivers
Daniel Ritz 62aa366d9b Input: usbtouchscreen - fix buffer overflow, make more egalax work
Fix a buffer overflow in mutli-packet handling code.  The overflow can
only happen with eGalax devices and is even there very unlikely (only
non-report packet are affected any only when truncated after the first
byte).

Also changes the mutli-packet handling code not to drop unknown packets,
but rather just drop one byte.  This allows synchronizing on report packets
in the data stream.  It's required for some egalax devices to work at all.

Also remove the pointless 'flags' member of the device struct and set the
version number to 0.6, plus some minor cleanups.

[akpm@linux-foundation.org: coding-style fixes]

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2008-01-17 12:01:18 -05:00
..
acorn/char
acpi Fix /proc/acpi/alarm BCD alarm encodings 2007-10-25 15:08:03 -07:00
amba
ata Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block 2007-10-25 15:44:54 -07:00
atm Eliminate pointless casts from void* in a few driver irq handlers. 2007-10-23 19:53:16 -04:00
auxdisplay
base
block ub: add sg_init_table for sense and read capacity commands 2007-10-25 09:17:03 +02:00
bluetooth
cdrom SG: audit of drivers that use blk_rq_map_sg() 2007-10-24 13:21:21 +02:00
char Sonypi: use synchronize_irq instead of sycnronize_sched 2007-11-21 14:16:38 -05:00
clocksource
connector
cpufreq
cpuidle
crypto [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
dca
dio
dma
edac
eisa
firewire
firmware
hid
hwmon
i2c
ide
ieee1394 SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
infiniband SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
input Input: usbtouchscreen - fix buffer overflow, make more egalax work 2008-01-17 12:01:18 -05:00
isdn ISDN/sc: fix longstanding warning 2007-10-24 05:16:25 -04:00
kvm
leds
lguest lguest: documentation update 2007-10-25 15:02:50 +10:00
macintosh
mca
md [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
media SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
message SG: audit of drivers that use blk_rq_map_sg() 2007-10-24 13:21:21 +02:00
mfd
misc sony-laptop: fit input devices into sysfs tree 2007-11-21 14:15:53 -05:00
mmc mmc_spi: Fix mmc-over-spi regression 2007-10-27 14:47:20 +02:00
mtd Eliminate pointless casts from void* in a few driver irq handlers. 2007-10-23 19:53:16 -04:00
net [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
nubus
of
oprofile
parisc
parport [PARPORT] Remove unused 'irq' argument from parport irq functions 2007-10-23 19:53:16 -04:00
pci jmicron: update quirk for JMB361/3/5/6 2007-10-23 21:20:02 -04:00
pcmcia
pnp
power
ps3
rapidio
rtc
s390 SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
sbus
scsi [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
serial serial: stop passing NULL to functions that expect data 2007-10-25 12:18:40 -07:00
sh
sn
spi
ssb
tc
telephony
uio
usb USB: open disconnect race in usblcd 2007-10-25 12:18:46 -07:00
video
virtio
w1
watchdog [WATCHDOG] AR7: watchdog timer 2007-10-23 20:35:13 +00:00
xen
zorro
Kconfig
Makefile Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2007-10-23 16:37:29 -07:00