x86/ldt: Make LDT pgtable free conditional
authorThomas Gleixner <tglx@linutronix.de>
Sun, 31 Dec 2017 15:52:15 +0000 (16:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 31 Dec 2017 15:55:09 +0000 (16:55 +0100)
commit7f414195b0c3612acd12b4611a5fe75995cf10c7
tree0fb83d6e1283ec3e3963e14d34573c22e474bbdd
parenta62d69857aab4caa43049e72fe0ed5c4a60518dd
x86/ldt: Make LDT pgtable free conditional

Andy prefers to be paranoid about the pagetable free in the error path of
write_ldt(). Make it conditional and warn whenever the installment of a
secondary LDT fails.

Requested-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/ldt.c