]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kfifo: fix kmalloc_array_node() argument order
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 20 Dec 2025 05:45:41 +0000 (21:45 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:09 +0000 (19:07 -0800)
commitc243413740b39b0cf0a88732de5efc2b45716d81
treeb80f322bdbb44a0b59f027d65b396bae91639a69
parentf34e19c34e4e92338d2ceaab2b95dd7790d262de
kfifo: fix kmalloc_array_node() argument order

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.

Link: https://lkml.kernel.org/r/20251220054541.2295599-1-rdunlap@infradead.org
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=216015
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Stefani Seibold <stefani@seibold.net>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/kfifo.c