From: Peter Wu Date: Thu, 11 Dec 2014 12:51:20 +0000 (+0100) Subject: HID: logitech-hidpp: disable io in probe error path X-Git-Tag: omap-for-v3.20/drop-legacy-3517~109^2^5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f486d9dbcc8bc2fc14aac0bf6e24637485107496;p=pandora-kernel.git 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 Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed