[IA64] Fix the order of atomic operations in restore_previous_kprobes on ia64
authorMasami Hiramatsu <mhiramat@redhat.com>
Fri, 18 Jan 2008 16:20:46 +0000 (11:20 -0500)
committerTony Luck <tony.luck@intel.com>
Mon, 4 Feb 2008 23:09:39 +0000 (15:09 -0800)
commit97075c4b3b7fdd6a083eea075c3a4a601f0d64d8
tree300e612c7810901e721c594846d8ad2bfaf60a7c
parenta23fe55e132cd85108ab55b3fafb4b5060d847c7
[IA64] Fix the order of atomic operations in restore_previous_kprobes on ia64

Fix the order of atomic operations to prevent overwriting prev_kprobe[0].
To pop values from stack, we must decrement stack index right AFTER
reading values.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/kprobes.c