commit | 21c1176a72bd019d513b26e05d491a31b50b18d2 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 28 17:51:42 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon May 21 14:38:24 2012 -0400 |
tree | f4b17999ea482335f50c2b7e5c2f8f5e9636fcba | |
parent | d9be5ea6f9b6a51535ccdd9881ffb3be2dbd48e9 [diff] |
arm: if we get into work_pending while returning to kernel mode, just go away checking in do_signal() is pointless - if we get there with !user_mode(regs) (and we might), we'll end up looping indefinitely. Check in work_pending and break out of the loop if so. Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>