Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3251
b: refs/heads/master
c: c61978b
h: refs/heads/master
i:
  3249: 84a26dc
  3247: db1ed53
v: v3
  • Loading branch information
Pavel Machek authored and Linus Torvalds committed Jun 25, 2005
1 parent 271cf80 commit 5cdf105
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e4d5822dc71f01bf515b8f6f4e41ae12ee785b8
refs/heads/master: c61978b30322c83a94d7e4857fa5b9996b7d7931
6 changes: 3 additions & 3 deletions trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,18 +781,18 @@ static int swsusp_alloc(void)
{
int error;

pagedir_nosave = NULL;
nr_copy_pages = calc_nr(nr_copy_pages);

pr_debug("suspend: (pages needed: %d + %d free: %d)\n",
nr_copy_pages, PAGES_FOR_IO, nr_free_pages());

pagedir_nosave = NULL;
if (!enough_free_mem())
return -ENOMEM;

if (!enough_swap())
return -ENOSPC;

nr_copy_pages = calc_nr(nr_copy_pages);

if (!(pagedir_save = alloc_pagedir(nr_copy_pages))) {
printk(KERN_ERR "suspend: Allocating pagedir failed.\n");
return -ENOMEM;
Expand Down

0 comments on commit 5cdf105

Please sign in to comment.