Skip to contentSkip to conversation

lib-fix-the-null-vs-is_err-bug-for-debugfs_create_dir.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 2, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib: fix the NULL vs IS_ERR() bug for debugfs_create_dir()
has been removed from the -mm tree. Its filename was
lib-fix-the-null-vs-is_err-bug-for-debugfs_create_dir.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: Yang Ruibin <[email protected]>
Subject: lib: fix the NULL vs IS_ERR() bug for debugfs_create_dir()
Date: Wed, 21 Aug 2024 03:34:40 -0400

debugfs_create_dir() returns error pointers. It never returns NULL. So use IS_ERR() to check it.

---

 lib/test_fpu_glue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_fpu_glue.c renamed from lib/test_fpu_glue.c~lib-fix-the-null-vs-is_err-bug-for-debugfs_create_dir +1 -1
@@ -42,7 +42,7 @@ static int __init test_fpu_init(void)
 		return -EINVAL;
 
 	selftest_dir = debugfs_create_dir("selftest_helpers", NULL);
-	if (!selftest_dir)
+	if (IS_ERR(selftest_dir))
 		return -ENOMEM;
 
 	debugfs_create_file_unsafe("test_fpu", 0444, selftest_dir, NULL,

_

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

tools-mm-check-mmap-based-on-return-values.patch