]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/numa: Unify common error path in numa_init()
authorAnshuman Khandual <anshuman.khandual@arm.com>
Sat, 22 Sep 2018 15:39:56 +0000 (21:09 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 1 Oct 2018 12:49:52 +0000 (13:49 +0100)
commitfe3f98183213730483c2379b31d68ea0679a6859
tree1480efe84b6eb94179ad73bc48c396579b93624c
parentd73a83e3a730d264318925ea94a8d4a02cff2399
arm64/numa: Unify common error path in numa_init()

At present numa_free_distance() is being called before numa_distance is
even initialized with numa_alloc_distance() which is really pointless.
Instead lets call numa_free_distance() on the common error path inside
numa_init() after numa_alloc_distance() has been successful.

Fixes: d04da22c10 ("arm64, numa: Add NUMA support for arm64 platforms")
Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/numa.c