mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-10 17:16:11 +07:00
powerpc/vmemmap: Don't warn if we don't find a mapping vmemmap list entry
Now that we are handling vmemmap list allocation failure correctly, don't WARN in section deactivate when we don't find a mapping vmemmap list entry. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200731113500.248306-2-aneesh.kumar@linux.ibm.com
This commit is contained in:
parent
ccaea15296
commit
1c0a7ac0ec
@ -285,10 +285,8 @@ static unsigned long vmemmap_list_free(unsigned long start)
|
||||
vmem_back_prev = vmem_back;
|
||||
}
|
||||
|
||||
if (unlikely(!vmem_back)) {
|
||||
WARN_ON(1);
|
||||
if (unlikely(!vmem_back))
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* remove it from vmemmap_list */
|
||||
if (vmem_back == vmemmap_list) /* remove head */
|
||||
|
Loading…
Reference in New Issue
Block a user