]> err.no Git - linux-2.6/commit
Input: hiddev - fix off-by-one for num_values in uref_multi requests
authorBen Collins <bcollins@ubuntu.com>
Tue, 31 Jan 2006 06:31:13 +0000 (01:31 -0500)
committerDmitry Torokhov <dtor_core@ameritech.net>
Tue, 31 Jan 2006 06:31:13 +0000 (01:31 -0500)
commit6dea93477c3377cf4199fd37cc3fb11071987ae4
tree33190c4ab5f6e9ec539c90c8cf4d0f3d96e62449
parent97d4ebfe7946bc9b89791c932a15c990a24aa94d
Input: hiddev - fix off-by-one for num_values in uref_multi requests

Found this when working with a HAPP UGCI device. It has a usage with 7
indexes. I could read them all one at a time, but using a multiref it
would only allow me to read the first 6. The patch below fixed it.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/usb/input/hiddev.c