projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaae19
)
arm64/ptrace: Clean up error handling path in sve_set_common()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Mon, 17 Jul 2023 17:55:05 +0000
(19:55 +0200)
committer
Will Deacon
<will@kernel.org>
Thu, 27 Jul 2023 10:14:11 +0000
(11:14 +0100)
All error handling paths go to 'out', except this one. Be consistent and
also branch to 'out' here.
Fixes: e12310a0d30f ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link:
https://lore.kernel.org/r/aa61301ed2dfd079b74b37f7fede5f179ac3087a.1689616473.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/ptrace.c
b/arch/arm64/kernel/ptrace.c
index d7f4f0d1ae120248b0a483c71245fb991b4925d2..9bc23f1b499ef75fd08036d4d2d586efb16dc654 100644
(file)
--- a/
arch/arm64/kernel/ptrace.c
+++ b/
arch/arm64/kernel/ptrace.c
@@
-884,7
+884,8
@@
static int sve_set_common(struct task_struct *target,
break;
default:
WARN_ON_ONCE(1);
- return -EINVAL;
+ ret = -EINVAL;
+ goto out;
}
/*