FIX: incorrect kvaddr_end in close
This commit is contained in:
parent
61ec001df6
commit
172197f638
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ static void my_shmem_vmops_close(struct vm_area_struct *vma)
|
||||||
/* Inside the window of mapped pages -- flush them up */
|
/* Inside the window of mapped pages -- flush them up */
|
||||||
struct page *pg = entry->page;
|
struct page *pg = entry->page;
|
||||||
ulong kvaddr_bgn = (ulong) page_address(pg);
|
ulong kvaddr_bgn = (ulong) page_address(pg);
|
||||||
ulong kvaddr_end = kvaddr_bgn + entry_pgs;
|
ulong kvaddr_end = kvaddr_bgn + entry_pgs * PAGE_SIZE;
|
||||||
|
|
||||||
|
|
||||||
pr_info("[%s] Before flush: 0x%px has 0x%lx [+%ld]. Refcount: %d\n",
|
pr_info("[%s] Before flush: 0x%px has 0x%lx [+%ld]. Refcount: %d\n",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue