]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firewire: ohci: initialize page array to use alloc_pages_bulk() correctly
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 28 Feb 2026 02:56:03 +0000 (11:56 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 28 Feb 2026 18:09:24 +0000 (10:09 -0800)
commit9197e5949a41cfb5d44a6b8a860766266340d558
treefe4fa765d2224dd1c7d9e88464a488d842fb8c2a
parent2f9339c052bdbafaa8b02188d069fbb0e8df1f26
firewire: ohci: initialize page array to use alloc_pages_bulk() correctly

The call of alloc_pages_bulk() skips to fill entries of page array when
the entries already have values. While, 1394 OHCI PCI driver passes the
page array without initializing. It could cause invalid state at PFN
validation in vmap().

Fixes: f2ae92780ab9 ("firewire: ohci: split page allocation from dma mapping")
Reported-by: John Ogness <john.ogness@linutronix.de>
Reported-and-tested-by: Harald Arnesen <linux@skogtun.org>
Reported-and-tested-by: David Gow <david@davidgow.net>
Closes: https://lore.kernel.org/lkml/87tsv1vig5.fsf@jogness.linutronix.de/
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firewire/ohci.c