Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9385
b: refs/heads/master
c: 254b547
h: refs/heads/master
i:
  9383: ebb4344
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Sep 28, 2005
1 parent d0fbca5 commit 4be11b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 249a6771afcdfaca0ac178f63343aff2c4dc2853
refs/heads/master: 254b54771cc4c00002f796be65d2885191dca9dc
7 changes: 3 additions & 4 deletions trunk/kernel/power/swsusp.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,15 +402,14 @@ static int write_page(unsigned long addr, swp_entry_t * loc)
static void data_free(void)
{
swp_entry_t entry;
int i;
struct pbe * p;

for (i = 0; i < nr_copy_pages; i++) {
entry = (pagedir_nosave + i)->swap_address;
for_each_pbe(p, pagedir_nosave) {
entry = p->swap_address;
if (entry.val)
swap_free(entry);
else
break;
(pagedir_nosave + i)->swap_address = (swp_entry_t){0};
}
}

Expand Down

0 comments on commit 4be11b8

Please sign in to comment.