arm64: fault: avoid send SIGBUS two times
authorDongjiu Geng <gengdongjiu@huawei.com>
Wed, 13 Dec 2017 10:36:47 +0000 (18:36 +0800)
committerWill Deacon <will.deacon@arm.com>
Wed, 13 Dec 2017 09:58:13 +0000 (09:58 +0000)
commitfaa75e147b583417273902552c61cf3250a44308
tree7301fe6882973bd87f4ea1c4ab9dfab95188bed3
parent0e17cada2a5b4dc847082e1db0e3f84599ffd436
arm64: fault: avoid send SIGBUS two times

do_sea() calls arm64_notify_die() which will always signal
user-space. It also returns whether APEI claimed the external
abort as a RAS notification. If it returns failure do_mem_abort()
will signal user-space too.

do_mem_abort() wants to know if we handled the error, we always
call arm64_notify_die() so can always return success.

Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
Reviewed-by: Xie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/fault.c