[POWERPC] Fix oops related to 4xx flush_tlb_page modification
authorKumar Gala <galak@kernel.crashing.org>
Fri, 9 Nov 2007 09:51:14 +0000 (03:51 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 9 Nov 2007 09:51:14 +0000 (03:51 -0600)
commit725fb29fd4bcda958b32f4479ad9934117c22019
tree85d8760fca2aaa32e22d40de3930626ce1186d44
parent4c011b1fb853776459c7d3d7de7b14fa41f28c46
[POWERPC] Fix oops related to 4xx flush_tlb_page modification

kmap_atomic calls flush_tlb_page with a NULL VMA and thus we end
up dereferencing a NULL pointer to try and get the context.id.

If the VMA is null use the global pid value of 0.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
include/asm-powerpc/tlbflush.h