summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-butterfly.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>2012-12-12 17:00:02 (GMT)
committerJiri Kosina <jkosina@suse.cz>2012-12-12 17:26:22 (GMT)
commit7a7d6d9c5fcd4b674da38e814cfc0724c67731b2 (patch)
tree8fdc9bdf269b31a706e20ac0ca1d1f135164c4c8 /drivers/spi/spi-butterfly.c
parent9afd09a1db93cc9084846c2b9bc0d1194743e5dc (diff)
downloadlinux-fsl-qoriq-7a7d6d9c5fcd4b674da38e814cfc0724c67731b2.tar.xz
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>
Diffstat (limited to 'drivers/spi/spi-butterfly.c')
0 files changed, 0 insertions, 0 deletions