]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: hid-logitech-dj: fix off by one
authorNestor Lopez Casado <nlopezcasad@logitech.com>
Tue, 20 Sep 2011 13:59:03 +0000 (15:59 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Sep 2011 14:09:22 +0000 (16:09 +0200)
commit844580ff63ef4eb19eec4cfd8cd6e0b62d81279f
tree09efe63d4917899fd8adb340867f3662f6579895
parent534a7b8e10ec55d9f521e68c20dbb3634c25b98a
HID: hid-logitech-dj: fix off by one

There is a bug where a device with index 6 would write out of bounds in
the array of paired devices.
This patch fixes that problem.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Olivier Gay <ogay@logitech.com>
Signed-off-by: Nestor Lopez Casado <nlopezcasad@logitech.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-logitech-dj.h