]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80f0b081d78c7fe257d00cccc6e1a89e778d471d
tree003e35b090929bffa859bc459cefbf9c6b15cde9
parent0c8b98e40f9d61a6792a879de085b19667a1f51b
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