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:46:33 +0000 (15:46 +0100)
commitf43f386f0bf0380fad5483be3ac678eeee934e95
tree01ef9aef144ed16da3b0d51ae91f1926fe310ce4
parentf881e626849c62641a91a13cb5344908c6613d11
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>
arch/x86/mm/kaiser.c