Merge branch 'for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
[sfrench/cifs-2.6.git] / arch / arm64 / kernel / probes / uprobes.c
index 26c998534dca9a545d006ba5a637a7c1dd24aa52..636ca0119c0efa7cb1254568d04edfdddf791db9 100644 (file)
@@ -40,7 +40,7 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm,
        probe_opcode_t insn;
 
        /* TODO: Currently we do not support AARCH32 instruction probing */
-       if (test_bit(TIF_32BIT, &mm->context.flags))
+       if (mm->context.flags & MMCF_AARCH32)
                return -ENOTSUPP;
        else if (!IS_ALIGNED(addr, AARCH64_INSN_SIZE))
                return -EINVAL;