arm64/signal: Alloc tpidr2 sigframe after checking system_supports_tpidr2()
authorDongxu Sun <sundongxu3@huawei.com>
Fri, 17 Mar 2023 12:49:13 +0000 (20:49 +0800)
committerWill Deacon <will@kernel.org>
Wed, 12 Apr 2023 08:41:48 +0000 (09:41 +0100)
commit19e99e7d59bc421373e82af818197576b1a3940f
treed8d936e0e74f758bd5553c830336628815f9974a
parente9d14f3f3fb76c1e89f1648c0a2bc890de58bf11
arm64/signal: Alloc tpidr2 sigframe after checking system_supports_tpidr2()

Move tpidr2 sigframe allocation from under the checking of
system_supports_sme() to the checking of system_supports_tpidr2().

Signed-off-by: Dongxu Sun <sundongxu3@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230317124915.1263-3-sundongxu3@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/signal.c