Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59f1183d authored by Nitin Gupta's avatar Nitin Gupta Committed by David S. Miller
Browse files

sparc64: Fix size check in huge_pte_alloc

parent ad0376eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -261,7 +261,7 @@ pte_t *huge_pte_alloc(struct mm_struct *mm,
		if (!pmd)
			return NULL;

		if (sz == PMD_SHIFT)
		if (sz >= PMD_SIZE)
			pte = (pte_t *)pmd;
		else
			pte = pte_alloc_map(mm, pmd, addr);