Merge tag 'imx-fixes-4.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo...
[cascardo/linux.git] / kernel / ptrace.c
index d49bfa1..1d3b766 100644 (file)
@@ -585,8 +585,8 @@ static int ptrace_setoptions(struct task_struct *child, unsigned long data)
                return -EINVAL;
 
        if (unlikely(data & PTRACE_O_SUSPEND_SECCOMP)) {
-               if (!config_enabled(CONFIG_CHECKPOINT_RESTORE) ||
-                   !config_enabled(CONFIG_SECCOMP))
+               if (!IS_ENABLED(CONFIG_CHECKPOINT_RESTORE) ||
+                   !IS_ENABLED(CONFIG_SECCOMP))
                        return -EINVAL;
 
                if (!capable(CAP_SYS_ADMIN))