The patch titled Subject: user_namespace: Remove unnecessary NULL values from kbuf has been added to the -mm mm-nonmm-unstable branch. Its filename is user_namespace-remove-unnecessary-null-values-from-kbuf.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/user_namespace-remove-unnecessary-null-values-from-kbuf.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Li zeming <zeming@xxxxxxxxxxxx> Subject: user_namespace: Remove unnecessary NULL values from kbuf Date: Mon, 15 Jan 2024 14:25:19 +0800 kbuf is assigned first, so it does not need to initialize the assignment. Link: https://lkml.kernel.org/r/20240115062519.31298-1-zeming@xxxxxxxxxxxx Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx> Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/user_namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/user_namespace.c~user_namespace-remove-unnecessary-null-values-from-kbuf +++ a/kernel/user_namespace.c @@ -931,7 +931,7 @@ static ssize_t map_write(struct file *fi struct uid_gid_map new_map; unsigned idx; struct uid_gid_extent extent; - char *kbuf = NULL, *pos, *next_line; + char *kbuf, *pos, *next_line; ssize_t ret; /* Only allow < page size writes at the beginning of the file */ _ Patches currently in -mm which might be from zeming@xxxxxxxxxxxx are user_namespace-remove-unnecessary-null-values-from-kbuf.patch