Message ID | baa5835df10254762aedb6cb23a9c1508f969736.1231492608.git.len.brown@intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index ec9f153..f5fc2d7 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -981,7 +981,7 @@ static void copy_data_page(unsigned long dst_pfn, unsigned long src_pfn) * data modified by kmap_atomic() */ safe_copy_page(buffer, s_page); - dst = kmap_atomic(pfn_to_page(dst_pfn), KM_USER0); + dst = kmap_atomic(d_page, KM_USER0); memcpy(dst, buffer, PAGE_SIZE); kunmap_atomic(dst, KM_USER0); } else {