kaiser: ENOMEM if kaiser_pagetable_walk() NULL
authorHugh Dickins <hughd@google.com>
Mon, 4 Sep 2017 01:48:02 +0000 (18:48 -0700)
committerYves-Alexis Perez <corsac@debian.org>
Thu, 4 Jan 2018 11:12:40 +0000 (11:12 +0000)
commitccf0836cfb441e2c167fa0452d3e62dfd2285826
treed64aa87bef7ffaada12ce82f459221a4545ab892
parent029dd1f95f7d001275fdaa7583dbbd81687c6075
kaiser: ENOMEM if kaiser_pagetable_walk() NULL

kaiser_add_user_map() took no notice when kaiser_pagetable_walk() failed.
And avoid its might_sleep() when atomic (though atomic at present unused).

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic features/all/kpti
Gbp-Pq: Name kaiser-enomem-if-kaiser_pagetable_walk-null.patch
arch/x86/mm/kaiser.c