]> Pileus Git - ~andy/linux/blobdiff - fs/binfmt_elf.c
coredump: factor out the setting of PF_DUMPCORE
[~andy/linux] / fs / binfmt_elf.c
index e32344bdfab126ded1a67b4ed18fb79dead006d1..34a9771eaa6ce12794ed07ae54bfc8760f816121 100644 (file)
@@ -2092,8 +2092,7 @@ static int elf_core_dump(struct coredump_params *cprm)
                goto cleanup;
 
        has_dumped = 1;
-       current->flags |= PF_DUMPCORE;
-  
+
        fs = get_fs();
        set_fs(KERNEL_DS);