Re: [PATCH v3 07/11] mm: vmalloc: Offload free_vmap_area_lock lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/22/24 12:03, Uladzislau Rezki wrote:
[ ... ]

<snip>
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 22aa63f4ef63..0d77d171b5d9 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2343,6 +2343,9 @@ struct vmap_area *find_vmap_area(unsigned long addr)
         struct vmap_area *va;
         int i, j;

+       if (unlikely(!vmap_initialized))
+               return NULL;
+
         /*
          * An addr_to_node_id(addr) converts an address to a node index
          * where a VA is located. If VA spans several zones and passed
<snip>

Could you please test it?


That fixes the problem.

Thanks,
Guenter





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux