]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/inst: Fix sparse detection on get_user_instr()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 20 May 2021 13:50:38 +0000 (13:50 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jun 2021 14:16:49 +0000 (00:16 +1000)
commit0aaa91b47f5933a067b3704e1253c409d8f0dd23
treecffeb90d5a4e039a19102489f9ac5012483db455
parentbc538b765e0b7eac06d0e23d674036c637e78177
powerpc/inst: Fix sparse detection on get_user_instr()

get_user_instr() lacks sparse detection for the __user tag.

This is because __gui_ptr is assigned with a cast.

Fix that by adding a __chk_user_ptr()

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0320e5b41a794fd456ab8c5993bbfadcf9e1d8b4.1621516826.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/inst.h