linux/drivers/input/touchscreen
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
..
ads7846.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
corgi_ts.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
elo.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
fujitsu_ts.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
gunze.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
h3600_ts_input.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
hp680_ts_input.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
jornada720_ts.c Input: add support for the HP Jornada 7xx (710/720/728) touchscreen 2007-09-26 00:02:56 -04:00
Kconfig Input: improve Kconfig help entries for HP Jornada devices 2008-01-14 00:54:23 -05:00
Makefile Input: add support for the HP Jornada 7xx (710/720/728) touchscreen 2007-09-26 00:02:56 -04:00
mk712.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
mtouch.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
penmount.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
touchright.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
touchwin.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
ucb1400_ts.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
usbtouchscreen.c Input: usbtouchscreen - fix buffer overflow, make more egalax work 2008-01-17 12:01:18 -05:00