[tip: x86/urgent] x86/mtrr: Correct the range check before performing MTRR type lookups

2021-01-06 Thread tip-bot2 for Ying-Tsun Huang
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: cb7f4a8b1fb426a175d1708f05581939c61329d4 Gitweb: https://git.kernel.org/tip/cb7f4a8b1fb426a175d1708f05581939c61329d4 Author:Ying-Tsun Huang AuthorDate:Tue, 15 Dec 2020 15:07:20 +08:00

[PATCH v2] x86/mtrr: Correct the returned MTRR type of mtrr_type_lookup.

2020-12-14 Thread Ying-Tsun Huang
t;) Signed-off-by: Ying-Tsun Huang --- arch/x86/kernel/cpu/mtrr/generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch/x86/kernel/cpu/mtrr/generic.c index 23ad8e953dfb..a29997e6cf9e 100644 --- a/arch/x86/kernel/cpu/mtrr/gener

[PATCH] x86/mtrr: Correct the returned MTRR type of mtrr_type_lookup.

2020-12-06 Thread Ying-Tsun Huang
y the start of next region. Fixes: b73522e0c1be ("x86/mm/mtrr: Enhance MTRR checks in kernel mapping helpers") Signed-off-by: Ying-Tsun Huang --- arch/x86/kernel/cpu/mtrr/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mtrr/generic.c b/arch