]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kaiser: fix build and FIXME in alloc_ldt_struct()
authorHugh Dickins <hughd@google.com>
Mon, 4 Sep 2017 00:09:44 +0000 (17:09 -0700)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Fri, 12 Jan 2018 18:20:06 +0000 (10:20 -0800)
commitf8dae2848a2d7ff3551f5f58db982b804be70931
treef86811625cbeb3541e545abddd0b22cd3306baea
parentb98fc0c408acf1b25d5fdda9b08a64e59e7634ff
kaiser: fix build and FIXME in alloc_ldt_struct()

Include linux/kaiser.h instead of asm/kaiser.h to build ldt.c without
CONFIG_KAISER.  kaiser_add_mapping() does already return an error code,
so fix the FIXME.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 9b94cf97f42ca30fe9b5010900fa6e1d6855a9f6)
Orabug: 27333760
CVE: CVE-2017-5754
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
arch/x86/kernel/ldt.c