smb3: do not error on fsync when readonly
[linux-block.git] / fs / binfmt_elf.c
index a813b70f594e69ee043781a61de130a636ef9c6a..fa582748be412f7d132d96af01d79a51961e28cb 100644 (file)
@@ -1834,7 +1834,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
        /*
         * Allocate a structure for each thread.
         */
-       for (ct = &dump_task->mm->core_state->dumper; ct; ct = ct->next) {
+       for (ct = &dump_task->signal->core_state->dumper; ct; ct = ct->next) {
                t = kzalloc(offsetof(struct elf_thread_core_info,
                                     notes[info->thread_notes]),
                            GFP_KERNEL);
@@ -2024,7 +2024,7 @@ static int fill_note_info(struct elfhdr *elf, int phdrs,
        if (!elf_note_info_init(info))
                return 0;
 
-       for (ct = current->mm->core_state->dumper.next;
+       for (ct = current->signal->core_state->dumper.next;
                                        ct; ct = ct->next) {
                ets = kzalloc(sizeof(*ets), GFP_KERNEL);
                if (!ets)