Skip to content

Commit 5f69ca4

Browse files
tititiou36willdeacon
authored andcommitted
arm64/ptrace: Clean up error handling path in sve_set_common()
All error handling paths go to 'out', except this one. Be consistent and also branch to 'out' here. Fixes: e12310a ("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>
1 parent 6eaae19 commit 5f69ca4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/kernel/ptrace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,8 @@ static int sve_set_common(struct task_struct *target,
884884
break;
885885
default:
886886
WARN_ON_ONCE(1);
887-
return -EINVAL;
887+
ret = -EINVAL;
888+
goto out;
888889
}
889890

890891
/*

0 commit comments

Comments
 (0)