[PATCH] arm: fix SIGBUS handling
authorakpm@osdl.org <akpm@osdl.org>
Sat, 16 Apr 2005 22:23:55 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:23:55 +0000 (15:23 -0700)
commit2d137c24e9f433e37ffd10b3d5f418157589a8d2
tree9924bec3f5646b6fe6eaa597ccd2f2dc6aa05673
parentbaaa2c512dc1c47e3afeb9d558c5323c9240bd21
[PATCH] arm: fix SIGBUS handling

\r)

From: Russell King <rmk+lkml@arm.linux.org.uk>

ARM wasn't raising a SIGBUS with a siginfo structure.  Fix
__do_user_fault() to allow us to use it for SIGBUS conditions, and arrange
for the sigbus path to use this.

We need to prevent the siginfo code being called if we do not have a user
space context to call it, so consolidate the "user_mode()" tests.

Thanks to Ian Campbell who spotted this oversight.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/arm/mm/fault.c