Message ID | 496565EC904933469F292DDA3F1663E602AA6587B3@dlee06.ent.ti.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | |
Headers | show |
diff --git a/drivers/dsp/bridge/rmgr/proc.c b/drivers/dsp/bridge/rmgr/proc.c index 4f179ac..72c86df 100644 --- a/drivers/dsp/bridge/rmgr/proc.c +++ b/drivers/dsp/bridge/rmgr/proc.c @@ -585,11 +585,11 @@ static int memory_sync_page(struct vm_area_struct *vma, unsigned long start, } offset = start & ~PAGE_MASK; - kaddr = page_address(page) + offset; + kaddr = kmap(page) + offset; rest = min_t(ssize_t, PAGE_SIZE - offset, len); - MEM_FlushCache(kaddr, rest, ftype); + kunmap(page); put_page(page); len -= rest; start += rest;