Skip to contentSkip to conversation

kfifo-fix-kmalloc_array_node-argument-order.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jan 21

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kfifo: fix kmalloc_array_node() argument order
has been removed from the -mm tree. Its filename was
kfifo-fix-kmalloc_array_node-argument-order.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: Randy Dunlap <[email protected]>
Subject: kfifo: fix kmalloc_array_node() argument order
Date: Fri, 19 Dec 2025 21:45:41 -0800

To be consistent, pass the kmalloc_array_node() parameters in the order (number_of_elements, element_size). Since only the product of the two values is used, this is not a bug fix.

---

 lib/kfifo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/kfifo.c renamed from lib/kfifo.c~kfifo-fix-kmalloc_array_node-argument-order +1 -1
@@ -41,7 +41,7 @@ int __kfifo_alloc_node(struct __kfifo *f
 		return -EINVAL;
 	}
 
-	fifo->data = kmalloc_array_node(esize, size, gfp_mask, node);
+	fifo->data = kmalloc_array_node(size, esize, gfp_mask, node);
 
 	if (!fifo->data) {
 		fifo->mask = 0;

_

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