Skip to contentSkip to conversation

user_namespace-remove-unnecessary-null-values-from-kbuf.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Feb 22, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: user_namespace: remove unnecessary NULL values from kbuf
has been removed from the -mm tree. Its filename was
user_namespace-remove-unnecessary-null-values-from-kbuf.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Li zeming <[email protected]>
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.

---

 kernel/user_namespace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/user_namespace.c renamed from kernel/user_namespace.c~user_namespace-remove-unnecessary-null-values-from-kbuf +1 -1
@@ -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 [email protected] are