#ifndef COLORS_H #define COLORS_H #define __reset "0" #define __bold "1" #define __black "30" #define __red "31" #define __green "32" #define __yellow "33" #define __blue "34" #define __magenta "35" #define __cyan "36" #define __white "37" #define __on_black "40" #define __on_red "41" #define __on_green "42" #define __on_yellow "43" #define __on_blue "44" #define __on_magenta "45" #define __on_cyan "46" #define __on_white "47" #endif /* COLORS_H */ .png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2016-03-10 20:52:21 +0100
committerJiri Kosina <jkosina@suse.cz>2016-03-15 15:28:55 +0100
commit1d1b564ff852944a10b524f21dfb78818bd43f52 (patch)
tree57e8a59d8488e81b230222c474fd337572c353c2
parent43a4a04d4ddb268373d5857c7a7bcbe3658e5b48 (diff)
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>
Diffstat