Merge "[REFACTOR] Buffer: move getting next queue element into separate function"
[kernel/swap-modules.git] / uprobe / arch / asm-x86 / swap_uprobes.c
index 0d09c77..2ec59ac 100644 (file)
@@ -375,7 +375,7 @@ static int uprobe_exceptions_notify(struct notifier_block *self, unsigned long v
        struct die_args *args = (struct die_args *)data;
        int ret = NOTIFY_DONE;
 
-       if (args->regs && !user_mode_vm(args->regs))
+       if (args->regs == NULL || !user_mode_vm(args->regs))
                return ret;
 
        switch (val) {