XArray: Add calls to might_alloc()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 6 Jul 2022 18:51:00 +0000 (14:51 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 11 Jul 2022 01:17:30 +0000 (21:17 -0400)
commit1dd685c414a7b9fdb3d23aca3aedae84f0b998ae
tree003e35b090929bffa859bc459cefbf9c6b15cde9
parent32346491ddf24599decca06190ebca03ff9de7f8
XArray: Add calls to might_alloc()

Catch bogus GFP flags deterministically, instead of occasionally
when we actually have to allocate memory.

Reported-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/xarray.h
tools/include/linux/sched/mm.h