arm64: pass ESR_ELx to die() of cfi_handler
authorSangmoon Kim <sangmoon.kim@samsung.com>
Mon, 20 Feb 2023 07:34:41 +0000 (16:34 +0900)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 22 Feb 2023 16:51:26 +0000 (16:51 +0000)
commitb61b82f81e095fe265b0614045d17b08e6ee5c72
treede5680f97fb4057e8b88bccdb111f4233d138606
parent0269680e5eb88f6223c53a8b3138cbfa60ba7657
arm64: pass ESR_ELx to die() of cfi_handler

Commit 0f2cb928a154 ("arm64: consistently pass ESR_ELx to die()") caused
all callers to pass the ESR_ELx value to die().

For consistency, this patch also adds esr to die() call of cfi_handler.
Also, when CFI error occurs, die handlers can use ESR_ELx value.

Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230220073441.2753-1-sangmoon.kim@samsung.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c