arm: if we get into work_pending while returning to kernel mode, just go away
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 Apr 2012 21:51:42 +0000 (17:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 May 2012 18:38:24 +0000 (14:38 -0400)
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>

No differences found