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

Commit f5a50ce1 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: return -EINVAL in __change_page_attr(), instead of 0



careful: might change driver behavior - but this is the right
return value.

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 674d6726
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ __change_page_attr(unsigned long address, struct page *page, pgprot_t prot)
repeat:
	kpte = lookup_address(address, &level);
	if (!kpte)
		return 0;
		return -EINVAL;

	kpte_page = virt_to_page(kpte);
	BUG_ON(PageLRU(kpte_page));