]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix kunmap_atomic's use of kpte_clear_flush()
authorJeremy Fitzhardinge <jeremy@goop.org>
Thu, 7 Dec 2006 04:32:22 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:21 +0000 (08:39 -0800)
commite3f26f000440f7bb590956f79749ad4ba47afe22
tree3b15ec560ae56bb7730eedb3e7e8594ced2f7029
parent6a37efd8740e0cf48f5c4cb1d619bc0efacb898e
[PATCH] Fix kunmap_atomic's use of kpte_clear_flush()

kunmap_atomic() will call kpte_clear_flush with vaddr/ptep arguments which
don't correspond if the vaddr is just a normal lowmem address (ie, not in
the KMAP area).  This patch makes sure that the pte is only cleared if kmap
area was actually used for the mapping.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Zachary Amsden <zach@vmware.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mm/highmem.c