kaiser: ENOMEM if kaiser_pagetable_walk() NULL
authorHugh Dickins <hughd@google.com>
Mon, 4 Sep 2017 01:48:02 +0000 (18:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2018 14:44:24 +0000 (15:44 +0100)
commit407c3ff6a24c7cb418b77a124d17e282f9622037
tree95d6eaa06e309db8276606ad08c0db99d74cd199
parent20cbe9a3aa2e341824da57ce0ac6d52cbffaa570
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>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/mm/kaiser.c