reserve_region_with_split: Fix GFP_KERNEL usage under spinlock

This one apparently doesn't generate any warnings, because the function
is only used during system bootup, when the warnings are disabled. But
it's still very wrong.

The __reserve_region_with_split() function is called with the
resource_lock held for writing, so it must only ever do GFP_ATOMIC
allocations.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+1 -1
+1 -1
kernel/resource.c
··· 523 523 { 524 524 struct resource *parent = root; 525 525 struct resource *conflict; 526 - struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); 526 + struct resource *res = kzalloc(sizeof(*res), GFP_ATOMIC); 527 527 528 528 if (!res) 529 529 return;