linux/arch/sparc
Matthew Wilcox (Oracle) a970a9764c sparc: Fix handling of page table constructor failure
The page has just been allocated, so its refcount is 1.  free_unref_page()
is for use on pages which have a zero refcount.  Use __free_page()
like the other implementations of pte_alloc_one().

Fixes: 1ae9ae5f7d ("sparc: handle pgtable_page_ctor() fail")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-02-18 16:30:09 -08:00
..
boot sparc: piggyback: handle invalid image 2020-06-22 15:44:44 -07:00
configs sparc: sparc64_defconfig: add necessary configs for qemu 2021-02-18 16:17:39 -08:00
crypto crypto: lib/sha1 - remove unnecessary includes of linux/cryptohash.h 2020-05-08 15:32:17 +10:00
include sparc: remove SA_STATIC_ALLOC macro definition 2020-09-14 17:04:49 -07:00
kernel sparc32: Preserve clone syscall flags argument for restarts due to signals 2021-02-18 16:15:11 -08:00
lib sparc32: fix a user-triggerable oops in clear_user() 2020-07-21 18:23:55 -07:00
math-emu sparc: Use fallthrough pseudo-keyword 2020-07-21 18:28:00 -07:00
mm sparc: Fix handling of page table constructor failure 2021-02-18 16:30:09 -08:00
net treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
oprofile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
power treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
prom License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vdso mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
Kbuild treewide: Add SPDX license identifier - Kbuild 2019-05-30 11:32:33 -07:00
Kconfig sparc64: only select COMPAT_BINFMT_ELF if BINFMT_ELF is set 2021-02-18 16:28:18 -08:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile sparc: generate uapi header and system call table files 2018-11-18 18:52:22 -08:00