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

Commit 7c178a26 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86, mm: fault.c, remove #ifdef from fault_in_kernel_space()



Impact: cleanup

Removal of an #ifdef in fault_in_kernel_space(), by making
use of the new TASK_SIZE_MAX symbol which is now available
on 32-bit too.

Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d9517346
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -960,11 +960,7 @@ access_error(unsigned long error_code, int write, struct vm_area_struct *vma)

static int fault_in_kernel_space(unsigned long address)
{
#ifdef CONFIG_X86_32
	return address >= TASK_SIZE;
#else
	return address >= TASK_SIZE_MAX;
#endif
}

/*