debug: show ioremap vmalloc pfn debug when user faults happens [1/1]

PD#173163

Problem:
ioremap/vmalloc pfn is not printed when user fault

Solution:
show ioremap/vmalloc pfn debug when user faults happens

Verify:
verify local

Change-Id: I654fac58db7d8b35144b4c639e32c324b95ed032
Signed-off-by: Jianxin Pan <jianxin.pan@amlogic.com>
This commit is contained in:
Jianxin Pan
2018-10-19 16:20:55 +08:00
parent f21834f924
commit d44d611fc4
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ static long get_user_pfn(struct mm_struct *mm, unsigned long addr)
long pfn = -1;
pgd_t *pgd;
if (!mm)
if (!mm || addr >= VMALLOC_START)
mm = &init_mm;
pgd = pgd_offset(mm, addr);

View File

@@ -174,7 +174,7 @@ static long get_user_pfn(struct mm_struct *mm, unsigned long addr)
long pfn = -1;
pgd_t *pgd;
if (!mm)
if (!mm || addr >= VMALLOC_START)
mm = &init_mm;
pgd = pgd_offset(mm, addr);