Skip to content

Commit c415b53

Browse files
committed
Merge tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 mm fixlet from Borislav Petkov: - A sparse address space annotation fix * tag 'x86_mm_for_v5.19_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/fault: Cast an argument to the proper address space in prefetch()
2 parents e36ae22 + 944fad4 commit c415b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/fault.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ is_prefetch(struct pt_regs *regs, unsigned long error_code, unsigned long addr)
149149
unsigned char opcode;
150150

151151
if (user_mode(regs)) {
152-
if (get_user(opcode, instr))
152+
if (get_user(opcode, (unsigned char __user *) instr))
153153
break;
154154
} else {
155155
if (get_kernel_nofault(opcode, instr))

0 commit comments

Comments
 (0)