[15/25] Merge pmdisk and swsusp
From: Patrick Mochel
Date: Sat Jul 17 2004 - 18:03:15 EST
ChangeSet 1.1857, 2004/07/17 12:24:57-07:00, mochel@xxxxxxxxxxxxxxxxxx
[swsusp] Fix nasty bug in calculating next address to read from.
- The bio code already does this for us..
kernel/power/swsusp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/kernel/power/swsusp.c b/kernel/power/swsusp.c
--- a/kernel/power/swsusp.c 2004-07-17 14:51:01 -07:00
+++ b/kernel/power/swsusp.c 2004-07-17 14:51:01 -07:00
@@ -1279,7 +1279,7 @@
#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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/