The patch titled Subject: fork: unshare: remove dead code has been added to the -mm tree. Its filename is fork-unshare-remove-dead-code.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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alan Cox <alan@xxxxxxxxxxxxxxx> Subject: fork: unshare: remove dead code If new_nsproxy is set we will always call switch_task_namespaces and then set new_nsproxy back to NULL so the reassignment and fall through check are redundant Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/fork.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff -puN kernel/fork.c~fork-unshare-remove-dead-code kernel/fork.c --- a/kernel/fork.c~fork-unshare-remove-dead-code +++ a/kernel/fork.c @@ -1792,10 +1792,8 @@ SYSCALL_DEFINE1(unshare, unsigned long, exit_sem(current); } - if (new_nsproxy) { + if (new_nsproxy) switch_task_namespaces(current, new_nsproxy); - new_nsproxy = NULL; - } task_lock(current); @@ -1819,9 +1817,6 @@ SYSCALL_DEFINE1(unshare, unsigned long, task_unlock(current); } - if (new_nsproxy) - put_nsproxy(new_nsproxy); - bad_unshare_cleanup_fd: if (new_fd) put_files_struct(new_fd); _ Patches currently in -mm which might be from alan@xxxxxxxxxxxxxxx are linux-next.patch drivers-message-fusion-mptscsihc-missing-break.patch binfmt_elf-fix-corner-case-kfree-of-uninitialized-data.patch binfmt_elf-fix-corner-case-kfree-of-uninitialized-data-checkpatch-fixes.patch fork-unshare-remove-dead-code.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