]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/code-patching: Fix patch_branch() return on out-of-range failure
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 2 Dec 2021 12:00:22 +0000 (13:00 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Dec 2021 11:35:24 +0000 (22:35 +1100)
commitba20d0c5a233be5e3e5bc1df71fede5b4f0a3283
tree705f3864eb8dc1d85e9a464eee8ef6492dcd4fe1
parent4b774bf71128bad5747cdd1334011b7f5269cdd0
powerpc/code-patching: Fix patch_branch() return on out-of-range failure

Do not silentely ignore a failure of create_branch() in
patch_branch(). Return -ERANGE.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8540cb64b1f06710eaf41e3835c7ba3e21fa2b05.1638446239.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/code-patching.c