diff options
author | Hugh Dickins <hugh@veritas.com> | 2004-05-03 22:19:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-03 22:19:15 -0700 |
commit | 8c0459dcc061656d94f80922bb29231fc1a25100 (patch) | |
tree | cccafc5de8ad4680dcfc380803bd793cba1441f3 /mm | |
parent | 3bbadbdf1446a040b9f3332cd9c77ae66f22ff6b (diff) | |
download | history-8c0459dcc061656d94f80922bb29231fc1a25100.tar.gz |
[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.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mremap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mremap.c b/mm/mremap.c index d4e99602531521..9043076915f971 100644 --- a/mm/mremap.c +++ b/mm/mremap.c @@ -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); |