Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Jean Delvare <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
- Loading branch information