]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/i386/kernel/kprobes.c
[PATCH] i386: don't try kprobes for v8086 mode
[net-next-2.6.git] / arch / i386 / kernel / kprobes.c
index 38806f427849f7f4dc8c76891229f952791064c3..395a9a6dff883f9b1d49ceb430c632e4a2a55d43 100644 (file)
@@ -607,7 +607,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
        struct die_args *args = (struct die_args *)data;
        int ret = NOTIFY_DONE;
 
-       if (args->regs && user_mode(args->regs))
+       if (args->regs && user_mode_vm(args->regs))
                return ret;
 
        switch (val) {