]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: virt-pci: don't use kmalloc()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jan 2025 12:54:04 +0000 (13:54 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 12 Feb 2025 22:40:50 +0000 (23:40 +0100)
commit5b166b782d327f4b66190cc43afd3be36f2b3b7a
treeb031cae86e906647021686be4917289390c28273
parentf82a9e7b9fa922bb9cccb00aae684a27b79e6df7
um: virt-pci: don't use kmalloc()

This code can be called deep in the IRQ handling, for
example, and then cannot normally use kmalloc(). Have
its own pre-allocated memory and use from there instead
so this doesn't occur. Only in the (very rare) case of
memcpy_toio() we'd still need to allocate memory.

Link: https://patch.msgid.link/20250110125550.32479-6-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virt-pci.c