]> git.dujemihanovic.xyz Git - linux.git/commit
MIPS: uprobes: Restore thread.trap_nr
authorTiezhu Yang <yangtiezhu@loongson.cn>
Sun, 23 Apr 2023 01:38:03 +0000 (09:38 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 24 Apr 2023 11:31:44 +0000 (13:31 +0200)
commit46e614cc91f7bd6f7872e434e6bcfda44454aac3
tree343be2adca0096ead02cb6124c657839db71cd6a
parent1492c6b1874ac5ed57d8ffef89e2b5c59f804aa8
MIPS: uprobes: Restore thread.trap_nr

thread.trap_nr is saved in arch_uprobe_pre_xol(), it should be restored
in arch_uprobe_{post,abort}_xol() accordingly, actually it was only done
in the post function, just do it in the abort function too, this change
is similar with x86 and powerpc.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/uprobes.c