x86, mm: is_untracked_pat_range() takes a normal semiclosed range
is_untracked_pat_range() -- like its components, is_ISA_range() and is_GRU_range(), takes a normal semiclosed interval (>=, <) whereas the PAT code called it as if it took a closed range (>=, <=). Fix. Although this is a bug, I believe it is non-manifest, simply because none of the callers will call this with non-page-aligned addresses. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <20091119202341.GA4420@sgi.com>
This commit is contained in:
@@ -274,7 +274,7 @@ static inline int is_new_memtype_allowed(u64 paddr, unsigned long size,
|
||||
/*
|
||||
* PAT type is always WB for untracked ranges, so no need to check.
|
||||
*/
|
||||
if (x86_platform.is_untracked_pat_range(paddr, paddr + size - 1))
|
||||
if (x86_platform.is_untracked_pat_range(paddr, paddr + size))
|
||||
return 1;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user