diff options
-rw-r--r-- | drivers/xen/balloon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index a56776dbe095..930fb6817901 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c | |||
@@ -407,7 +407,8 @@ static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) | |||
407 | nr_pages = ARRAY_SIZE(frame_list); | 407 | nr_pages = ARRAY_SIZE(frame_list); |
408 | 408 | ||
409 | for (i = 0; i < nr_pages; i++) { | 409 | for (i = 0; i < nr_pages; i++) { |
410 | if ((page = alloc_page(gfp)) == NULL) { | 410 | page = alloc_page(gfp); |
411 | if (page == NULL) { | ||
411 | nr_pages = i; | 412 | nr_pages = i; |
412 | state = BP_EAGAIN; | 413 | state = BP_EAGAIN; |
413 | break; | 414 | break; |