Skip to contentSkip to conversation

taskstats-drop-the-dead-null-attribute-check-in-parse.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Aug 13

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: taskstats: drop the dead NULL attribute check in parse()
has been removed from the -mm tree. Its filename was
taskstats-drop-the-dead-null-attribute-check-in-parse.patch

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

------------------------------------------------------
From: Bradley Morgan <[email protected]>
Subject: taskstats: drop the dead NULL attribute check in parse()
Date: Tue, 28 Jul 2026 20:21:03 +0000

Patch series "taskstats: tidy up the cpumask command path".

Two small cleanups from reading kernel/taskstats.c. No functional change in either one.

This patch (of 2):

taskstats_user_cmd() only calls the cpumask handlers after checking the same info->attrs[] entry, so parse() never sees a NULL attribute. Drop the check and its odd "return 1", which no caller tested for anyway.

No functional change.

---

 kernel/taskstats.c |    2 --
 1 file changed, 2 deletions(-)
kernel/taskstats.c renamed from kernel/taskstats.c~taskstats-drop-the-dead-null-attribute-check-in-parse +0 -2
@@ -361,8 +361,6 @@ static int parse(struct nlattr *na, stru
 	int len;
 	int ret;
 
-	if (na == NULL)
-		return 1;
 	len = nla_len(na);
 	if (len > TASKSTATS_CPUMASK_MAXLEN)
 		return -E2BIG;

_

Patches currently in -mm which might be from [email protected] are

prctl-fix-pr_set_mm_auxv-losing-the-forced-at_null-terminator.patch taskstats-copy-signal-stats-under-siglock-in-taskstats_exit.patch