[PATCH] powerpc: Avoid integer overflow in page_is_ram()

Roland Dreier rdreier at cisco.com
Tue Sep 16 08:51:35 EST 2008


 > > #ifndef CONFIG_PPC64	/* XXX for now */
 > > -	return paddr < __pa(high_memory);
 > > +	return pfn < max_pfn;
 > > #else
 > > +	unsigned long paddr = (pfn << PAGE_SHIFT);
 > 
 > seems like this could be a phys_addr_t

Yes, it could I guess, but that would be an unrelated change, and I'm
not sure there's much point given this is in 64-bit-only code.

 - R.



More information about the Linuxppc-dev mailing list