Commit e1b56c8f authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

vdso: x86 -- Drop BUG_ON if no pfn found

If pfn = 0 it means we hit something very strange
condition but better to not yield BUG_ON here,
better exit with error for future investigation.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 828715f9
......@@ -127,7 +127,11 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
}
pfn = PME_PFRAME(pfn);
BUG_ON(!pfn);
if (!pfn) {
pr_err("Unexpected page fram number 0 for pid %d\n", pid);
ret = -1;
goto err;
}
/*
* Setup proper VMA status. Note starting with 3.16
......
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