mm-ioremap-add-slab-availability-checking-in-ioremap_prot.patch removed from -mm tree
The quilt patch titled
Subject: mm/ioremap: add slab availability checking in ioremap_prot
has been removed from the -mm tree. Its filename was
mm-ioremap-add-slab-availability-checking-in-ioremap_prot.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: mm/ioremap: add slab availability checking in ioremap_prot
Date: Thu, 6 Jul 2023 23:45:07 +0800
Several architectures has done checking if slab if available in ioremap_prot(). In fact it should be done in generic ioremap_prot() since on any architecutre, slab allocator must be available before get_vm_area_caller() and vunmap() are used.
Add the checking into generic_ioremap_prot().
---
mm/ioremap.c | 4 ++++ 1 file changed, 4 insertions(+)
mm/ioremap.c renamed from mm/ioremap.c~mm-ioremap-add-slab-availability-checking-in-ioremap_prot +4 -0
@@ -18,6 +18,10 @@ void __iomem *generic_ioremap_prot(phys_phys_addr_t last_addr;struct vm_struct *area; +/* An early platform driver might end up here */ +if (WARN_ON_ONCE (!slab_is_available ())) +return NULL ; +/* Disallow wrap-around or zero size */ last_addr = phys_addr + size -1 ;if (!size || last_addr < phys_addr)
_
Patches currently in -mm which might be from [email protected] are
net-altera-tse-make-altera_tse-depend-on-has_iomem.patch irqchip-al-fic-make-al_fic-depend-on-has_iomem.patch