"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "6c555490e0ce885a9caf0a045db69382a3ccbc9c"
HID: i2c-hid: add mutex protecting open/close race
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>
Loading
Please register or sign in to comment