summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adm1021.c
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-10-30 22:46:24 +0300
committerLen Brown <len.brown@intel.com>2007-11-05 21:07:11 +0300
commitfc589a3ce5f38db6239c147da4f9172a25575ecc (patch)
tree3732f557e21ef93787a0ebfcad4323ec00165dea /drivers/hwmon/adm1021.c
parentb856f5b8c022b75bb0504a8c1ce16a5f1656e08b (diff)
downloadlinux-fc589a3ce5f38db6239c147da4f9172a25575ecc.tar.xz
ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers
Map an mutex_lock_interruptible() error return into ERESTARTSYS, as the only possible error from mutex_lock_interruptible is EINTR, and that will only happen if signal_pending() causes the mutex lock attempt to abort. This still allows signals to be delivered ASAP, which is much nicer than just doing mutex_lock, and still shadows userspace from EINTR when SA_RESTART is active. Problem reported by Peter Jordan. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Cc: Jean Delvare <khali@linux-fr.org> Cc: Peter Jordan <usernetwork@gmx.info> Cc: Richard Neill <rn214@hermes.cam.ac.uk> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/hwmon/adm1021.c')
0 files changed, 0 insertions, 0 deletions