]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: ptrace: Fix missing return in hw breakpoint code
authorKeno Fischer <keno@juliacomputing.com>
Tue, 2 Feb 2021 00:21:09 +0000 (19:21 -0500)
committerWill Deacon <will@kernel.org>
Tue, 2 Feb 2021 21:07:56 +0000 (21:07 +0000)
commite5e3c957fec359460b9e0774c130f84dfcd65b51
tree743c1a871d9d6f558f42ee83cd4e5a2ff9344833
parent9c3b8686ae7e22d24f796b46cf0d694f35220848
arm64: ptrace: Fix missing return in hw breakpoint code

When delivering a hw-breakpoint SIGTRAP to a compat task via ptrace, the
lack of a 'return' statement means we fallthrough to the native case,
which differs in its handling of 'si_errno'.

Although this looks to be harmless because the subsequent signal is
effectively ignored, it's confusing and unintentional, so add the
missing 'return'.

Signed-off-by: Keno Fischer <keno@juliacomputing.com>
Link: https://lore.kernel.org/r/20210202002109.GA624440@juliacomputing.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/ptrace.c