mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user