linux-stable/drivers/misc
Henrique de Moraes Holschuh fc589a3ce5 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>
2007-11-05 13:07:11 -05:00
..
hdpuftrs [POWERPC] Sky Cpu and Nexus: use seq_file/single_open on proc interface 2007-10-03 12:02:44 +10:00
ibmasm Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
asus-laptop.c Pull events into release branch 2007-08-25 01:44:01 -04:00
atmel-ssc.c Driver for the Atmel on-chip SSC on AT32AP and AT91 2007-10-17 08:42:47 -07:00
eeprom_93cx6.c eeprom_93cx6: shorten pulse timing to match spec (bis) 2007-07-10 12:41:09 -04:00
fujitsu-laptop.c fujitsu-laptop.c: remove dead code 2007-10-25 17:43:46 -04:00
ioc4.c [PATCH] IOC3/IOC4: PCI mem space resources 2007-02-11 10:51:25 -08:00
Kconfig typo fixes 2007-10-20 01:34:40 +02:00
lkdtm.c [PATCH] assigning enum constant to char * is vile, even if it happens to be 0 2007-02-09 08:28:48 -08:00
Makefile Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
msi-laptop.c drivers/firmware: const-ify DMI API and internals 2007-10-09 20:22:20 -04:00
phantom.c Misc: phantom, improved data passing 2007-10-19 11:53:41 -07:00
sony-laptop.c more UTF-8 conversions 2007-10-19 23:22:11 +02:00
thinkpad_acpi.c ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers 2007-11-05 13:07:11 -05:00
thinkpad_acpi.h ACPI: thinkpad-acpi: add brightness_force parameter 2007-11-05 13:07:11 -05:00
tifm_7xx1.c misc/tifm_7xx1: replace deprecated irq flag 2007-06-01 08:18:28 -07:00
tifm_core.c Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00