summaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_sys.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-11 13:51:20 +0100
committerJiri Kosina <jkosina@suse.cz>2014-12-11 23:10:01 +0100
commitf486d9dbcc8bc2fc14aac0bf6e24637485107496 (patch)
tree531578461e529eddb5522c92796420f68b2a4154 /drivers/hid/wacom_sys.c
parent3a034a7a7d61c30809255c1fc27d47d52c8c1bb6 (diff)
downloadblackbird-op-linux-f486d9dbcc8bc2fc14aac0bf6e24637485107496.tar.gz
blackbird-op-linux-f486d9dbcc8bc2fc14aac0bf6e24637485107496.zip
HID: logitech-hidpp: disable io in probe error path
Balance a hid_device_io_start() call with hid_device_io_stop() in the error path. This avoids processing of HID reports when the probe fails which possibly leads to invalid memory access in hid_device_probe() as report_enum->report_id_hash might already be freed via hid_close_report(). hid_set_drvdata() is called before wtp_allocate, be consistent and clear drvdata too on the error path of wtp_allocate. Signed-off-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom_sys.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud