diff options
author | Henrique de Moraes Holschuh <[email protected]> | 2007-10-30 17:46:24 -0200 |
---|---|---|
committer | Len Brown <[email protected]> | 2007-11-05 13:07:11 -0500 |
commit | fc589a3ce5f38db6239c147da4f9172a25575ecc (patch) | |
tree | 3732f557e21ef93787a0ebfcad4323ec00165dea /lib/debugobjects.c | |
parent | b856f5b8c022b75bb0504a8c1ce16a5f1656e08b (diff) |
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 <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Peter Jordan <[email protected]>
Cc: Richard Neill <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions