]> Git Repo - linux.git/blobdiff - arch/arm/mm/alignment.c
libbpf: Fix libbpf hashmap on (I)LP32 architectures
[linux.git] / arch / arm / mm / alignment.c
index 84718eddae60395b23b5d512d37ee582342f4b85..81a627e6e1c59906962484ad75d8552123b75906 100644 (file)
@@ -774,7 +774,7 @@ static int alignment_get_arm(struct pt_regs *regs, u32 *ip, u32 *inst)
        if (user_mode(regs))
                fault = get_user(instr, ip);
        else
-               fault = probe_kernel_address(ip, instr);
+               fault = get_kernel_nofault(instr, ip);
 
        *inst = __mem_to_opcode_arm(instr);
 
@@ -789,7 +789,7 @@ static int alignment_get_thumb(struct pt_regs *regs, u16 *ip, u16 *inst)
        if (user_mode(regs))
                fault = get_user(instr, ip);
        else
-               fault = probe_kernel_address(ip, instr);
+               fault = get_kernel_nofault(instr, ip);
 
        *inst = __mem_to_opcode_thumb16(instr);
 
This page took 0.031543 seconds and 4 git commands to generate.