Skip to content

Commit 1fe428d

Browse files
rpedgecohansendc
authored andcommitted
x86/shstk: Change order of __user in type
0day reports a sparse warning: arch/x86/kernel/shstk.c:295:55: sparse: sparse: cast removes address space '__user' of expression The __user is in the wrong spot. Move it to right spot and make sparse happy. Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Rick Edgecombe <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Link: https://lore.kernel.org/all/20230825014554.1769194-1-rick.p.edgecombe%40intel.com
1 parent c6cfcbd commit 1fe428d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/shstk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static int shstk_push_sigframe(unsigned long *ssp)
275275
return -EINVAL;
276276

277277
*ssp -= SS_FRAME_SIZE;
278-
if (put_shstk_data((void *__user)*ssp, target_ssp))
278+
if (put_shstk_data((void __user *)*ssp, target_ssp))
279279
return -EFAULT;
280280

281281
return 0;

0 commit comments

Comments
 (0)