]> 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)
commit076958a701209072e8137493a6aabb8b4819318f
treecffeb90d5a4e039a19102489f9ac5012483db455
parent98ada49753a2a7d01c4f4c55e40fc2912dcfc8db
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