The patch titled Subject: proc-simpler-iterations-for-proc-cmdline-fix has been added to the -mm tree. Its filename is proc-simpler-iterations-for-proc-cmdline-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/proc-simpler-iterations-for-proc-cmdline-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/proc-simpler-iterations-for-proc-cmdline-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: proc-simpler-iterations-for-proc-cmdline-fix simplify cleanup code Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx> Cc: Andy Shevchenko <andy.shevchenko@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/base.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN fs/proc/base.c~proc-simpler-iterations-for-proc-cmdline-fix fs/proc/base.c --- a/fs/proc/base.c~proc-simpler-iterations-for-proc-cmdline-fix +++ a/fs/proc/base.c @@ -363,11 +363,8 @@ static ssize_t proc_pid_cmdline_read(str } end: - free_page((unsigned long)page); - mmput(mm); *pos += buf - buf0; - return buf - buf0; - + rv = buf - buf0; out_free_page: free_page((unsigned long)page); out_mmput: _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are i-need-old-gcc.patch mm-pagemap-fix-swap-offset-value-for-pmd-migration-entry-fix.patch writeback-safer-lock-nesting-fix.patch arm-arch-arm-include-asm-pageh-needs-personalityh.patch ocfs2-without-quota-support-try-to-avoid-calling-quota-recovery-checkpatch-fixes.patch mm.patch mm-check-for-sigkill-inside-dup_mmap-loop-fix.patch list_lru-prefetch-neighboring-list-entries-before-acquiring-lock-fix.patch mm-oom-cgroup-aware-oom-killer-fix.patch mm-oom-docs-describe-the-cgroup-aware-oom-killer-fix-2-fix.patch mm-oom-cgroup-aware-oom-killer-fix-fix.patch proc-simpler-iterations-for-proc-cmdline-fix.patch ida-remove-simple_ida_lock-fix.patch kernel-forkc-export-kernel_thread-to-modules.patch slab-leaks3-default-y.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html