HID: hid-logitech: Collect report descriptors before sending
authorHenrik Rydberg <rydberg@euromail.se>
Sun, 22 Apr 2012 12:21:39 +0000 (14:21 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 May 2012 10:54:53 +0000 (12:54 +0200)
commit2a039bf5a6caa6b41c3839c1e3a19b20fb38270b
treeead38dc1262b0f62063607d08ef354faccdc9df9
parent07d9ab4f0e52cb2a383596e5ebbbd20232501393
HID: hid-logitech: Collect report descriptors before sending

The current code allows several consecutive calls to hid_parse_report(),
which may have happened to work before, but would cause a memory leak
and generally be incorrect. This patch collects all the reports
before sending them once.

Cc: Nestor Lopez Casado <nlopezcasad@logitech.com>
Tested-by: Benjamin Tissoires <benjamin.tissoires@gmail.com
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c