Heiner Kallweit 1d1b564ff8 hid: thingm: reorder calls in thingm_probe
When reviewing another thingm patch Benjamin Tissoires pointed out
the following: "The problem here is that hid_hw_start() is called
before thingm_version() which allows user space to briefly introduce
races between thingm_version() and any hidraw requests.
The mutex will not help here as it is initialized after hid_hw_start()
and only used for protecting the concurrent access of the rgb."

Avoid this possible issue by calling hid_hw_start() later in the
probe function.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2016-03-15 15:28:55 +01:00
..
2015-10-21 13:15:53 +02:00
2015-12-28 13:41:44 +01:00
2015-10-21 13:15:53 +02:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-12-28 13:41:51 +01:00
2015-05-07 10:47:53 +02:00
2015-12-28 13:41:44 +01:00
2015-12-28 13:41:44 +01:00