Commit c97911a5 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mm: initialize PageEntry pe to NULL in PagemapEntry

Otherwise it contains trash and BUG at page-read.c:98 may be triggered.

https://bugzilla.openvz.org/show_bug.cgi?id=2633Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 93884266
...@@ -179,6 +179,8 @@ err_cl: ...@@ -179,6 +179,8 @@ err_cl:
static int open_page_read_at(int dfd, int pid, struct page_read *pr) static int open_page_read_at(int dfd, int pid, struct page_read *pr)
{ {
pr->pe = NULL;
pr->fd = open_image_at(dfd, CR_FD_PAGEMAP, O_RSTR, (long)pid); pr->fd = open_image_at(dfd, CR_FD_PAGEMAP, O_RSTR, (long)pid);
if (pr->fd < 0) { if (pr->fd < 0) {
pr->fd_pg = open_image_at(dfd, CR_FD_PAGES_OLD, O_RSTR, pid); pr->fd_pg = open_image_at(dfd, CR_FD_PAGES_OLD, O_RSTR, pid);
......
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