Skip to content
Commit ed75098f authored by Steven Luo's avatar Steven Luo Committed by Greg Kroah-Hartman
Browse files

Staging: TIDSPBRIDGE: Fix mmap to map the correct region of physical memory



Commit 559c71fe ("Staging: TIDSPBRIDGE: Use vm_iomap_memory for
mmap-ing instead of remap_pfn_range") had the effect of inadvertently
shifting the start of the physical memory area mapped by
pdata->phys_mempool_base.  Correct this by subtracting that shift before
calling vm_iomap_memory() and adding it back afterwards.

Reported-by: default avatarDheeraj CVR <cvr.dheeraj@gmail.com>
Signed-off-by: default avatarIvaylo Dimitrov <freemangordon@abv.bg>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 76981cf1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment