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,7 +137,8 @@ move_one_page(struct vm_area_struct *vma, unsigned long old_addr,
error = -ENOMEM;
pte_unmap_nested(src);
}
pte_unmap(dst);
if (dst)
pte_unmap(dst);
}
spin_unlock(&mm->page_table_lock);
pte_chain_free(pte_chain);
......
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