Commit 8c0459dc authored by Hugh Dickins's avatar Hugh Dickins Committed by Linus Torvalds

[PATCH] mremap pte_unmap NULL

Old bug noone seems to have hit, but mremap's pte_unmap dst might be
NULL: would get preempt count wrong even when not DEBUG_HIGHMEM.
parent 3bbadbdf
......@@ -137,6 +137,7 @@ move_one_page(struct vm_area_struct *vma, unsigned long old_addr,
error = -ENOMEM;
pte_unmap_nested(src);
}
if (dst)
pte_unmap(dst);
}
spin_unlock(&mm->page_table_lock);
......
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