kexec: prevent double free on image allocation failure
[deliverable/linux.git] / kernel / sysctl.c
index d8df00e69c14ddabeafc9fdeb5031baeb0a2f1d0..d1b4ee67d2df696475479a9bb595b8008a580dd3 100644 (file)
@@ -2095,7 +2095,7 @@ int proc_dointvec_minmax(struct ctl_table *table, int write,
 static void validate_coredump_safety(void)
 {
 #ifdef CONFIG_COREDUMP
-       if (suid_dumpable == SUID_DUMPABLE_SAFE &&
+       if (suid_dumpable == SUID_DUMP_ROOT &&
            core_pattern[0] != '/' && core_pattern[0] != '|') {
                printk(KERN_WARNING "Unsafe core_pattern used with "\
                        "suid_dumpable=2. Pipe handler or fully qualified "\
This page took 0.0313059999999999 seconds and 5 git commands to generate.