diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2022-06-01 20:13:38 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2022-06-02 13:55:29 +0300 |
commit | 1bec877bdb763999112ad05d243bd538966938b4 (patch) | |
tree | 275a4539d738d70a45dee81b1c916ed34584fa13 | |
parent | ff979b2a9d9779382030023bfc4e3b1989c8c314 (diff) | |
download | linux-1bec877bdb763999112ad05d243bd538966938b4.tar.xz |
arm64: Remove the __user annotation for the restore_za_context() argument
The struct user_ctx *user pointer passed to restore_za_context() is not
a user point but a structure containing several __user pointers. Remove
the __user annotation.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Fixes: 39782210eb7e ("arm64/sme: Implement ZA signal handling")
Reported-by: kernel test robot <lkp@intel.com>
Cc: Mark Brown <broonie@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220601171338.2143625-1-catalin.marinas@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | arch/arm64/kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 18bf590dc1c7..03810a759f91 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -385,7 +385,7 @@ static int preserve_za_context(struct za_context __user *ctx) return err ? -EFAULT : 0; } -static int restore_za_context(struct user_ctxs __user *user) +static int restore_za_context(struct user_ctxs *user) { int err; unsigned int vq; |