Skip to contentSkip to conversation

xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer
has been removed from the -mm tree. Its filename was
xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: xen/x86: free_p2m_page: use memblock_free_ptr() to free a virtual pointer

free_p2m_page() wrongly passes a virtual pointer to memblock_free() that treats it as a physical address.

Call memblock_free_ptr() instead that gets a virtual address to free the memory.

---

 arch/x86/xen/p2m.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/p2m.c renamed from arch/x86/xen/p2m.c~xen-x86-free_p2m_page-use-memblock_free_ptr-to-free-a-virtual-pointer +1 -1
@@ -197,7 +197,7 @@ static void * __ref alloc_p2m_page(void)
 static void __ref free_p2m_page(void *p)
 {
 	if (unlikely(!slab_is_available())) {
-		memblock_free((unsigned long)p, PAGE_SIZE);
+		memblock_free_ptr(p, PAGE_SIZE);
 		return;
 	}
 

_

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