Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6

* 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
PM / Hibernate: Return error code when alloc_image_page() fails

+2 -5
+2 -5
kernel/power/snapshot.c
··· 1519 1519 swsusp_alloc(struct memory_bitmap *orig_bm, struct memory_bitmap *copy_bm, 1520 1520 unsigned int nr_pages, unsigned int nr_highmem) 1521 1521 { 1522 - int error = 0; 1523 - 1524 1522 if (nr_highmem > 0) { 1525 - error = get_highmem_buffer(PG_ANY); 1526 - if (error) 1523 + if (get_highmem_buffer(PG_ANY)) 1527 1524 goto err_out; 1528 1525 if (nr_highmem > alloc_highmem) { 1529 1526 nr_highmem -= alloc_highmem; ··· 1543 1546 1544 1547 err_out: 1545 1548 swsusp_free(); 1546 - return error; 1549 + return -ENOMEM; 1547 1550 } 1548 1551 1549 1552 asmlinkage int swsusp_save(void)