Staging
v0.5.1
https://github.com/torvalds/linux
Revision 595bf2aacae96d0f87352a1ff5476b79e52e212f authored by Martin Schwidefsky on 04 June 2005, 22:43:32 UTC, committed by Linus Torvalds on 05 June 2005, 00:13:00 UTC
The condition for no context in do_exception checks for hard and soft
interrupts by using in_interrupt() but not for preemption.  This is bad for
the users of __copy_from/to_user_inatomic because the fault handler might call
schedule although the preemption count is != 0.  Use in_atomic() instead
in_interrupt().

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c5c3a6d
History
Tip revision: 595bf2aacae96d0f87352a1ff5476b79e52e212f authored by Martin Schwidefsky on 04 June 2005, 22:43:32 UTC
[PATCH] s390: in_interrupt vs. in_atomic
Tip revision: 595bf2a

README

back to top