]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kgdb_step_brk_fn: ignore other's exception
authorPratyush Anand <panand@redhat.com>
Wed, 2 Nov 2016 09:10:42 +0000 (14:40 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:20 +0000 (18:15 +0000)
commit780f80f0b00dfc6a03e55ec5f147c74120347cc6
tree19639c8a968854ccde185941a09e33b810b8fd9e
parent27e86c9ee91ccdab3584987ef35ef43a80d09fae
arm64: kgdb_step_brk_fn: ignore other's exception

ARM64 step exception does not have any syndrome information. So, it is
responsibility of exception handler to take care that they handle it
only if exception was raised for them.

Since kgdb_step_brk_fn() always returns 0, therefore we might have problem
when we will have other step handler registered as well.

This patch fixes kgdb_step_brk_fn() to return error in case of step handler
was not meant for kgdb.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/kgdb.c