Commit 4196815a authored by Patrick Mochel's avatar Patrick Mochel

[swsusp] Fix nasty bug in calculating next address to read from.

- The bio code already does this for us..
parent 62ca4334
......@@ -1279,7 +1279,7 @@ static int __init __read_suspend_image(int noresume)
#define PREPARENEXT \
{ next = cur->link.next; \
next.val = swp_offset(next) * PAGE_SIZE; \
next.val = swp_offset(next); \
}
if (bio_read_page(0, cur)) return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment