]> git.baikalelectronics.ru Git - kernel.git/commit
sparc32: mm: Don't try to free page-table pages if ctor() fails
authorWill Deacon <will@kernel.org>
Tue, 26 May 2020 17:33:00 +0000 (18:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jun 2020 01:45:51 +0000 (18:45 -0700)
commitc93a0c7a9eab002a956bd14ffcdb5a32c9a48ecc
tree8582dc17ac421fc74caad0d44386a2e7ff3cffec
parentdba1849f4ed66acb7dcb0c9435a054be269d1bdf
sparc32: mm: Don't try to free page-table pages if ctor() fails

The pages backing page-table allocations for SRMMU are allocated via
memblock as part of the "nocache" region initialisation during
srmmu_paging_init() and should not be freed even if a later call to
pgtable_pte_page_ctor() fails.

Remove the broken call to __free_page().

Cc: David S. Miller <davem@davemloft.net>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Fixes: db6a5bb1227f ("sparc: handle pgtable_page_ctor() fail")
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/srmmu.c