git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9afd09a
)
HID: i2c-hid: add mutex protecting open/close race
author
Benjamin Tissoires
<benjamin.tissoires@gmail.com>
Wed, 12 Dec 2012 17:00:02 +0000
(18:00 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 12 Dec 2012 17:26:22 +0000
(18:26 +0100)
We should not enter close function while someone else is in open.
This mutex prevents this race.
There is also no need to override the ret value with -EIO in case of
a failure of i2c_hid_set_power.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
No differences found