we return addresses, not page numbers in *mmap() methods
This commit is contained in:
parent
271d77fa58
commit
ea7f3505eb
@ -73,7 +73,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
|
||||
DRM_SPINUNLOCK(&dev->dma_lock);
|
||||
return 0;
|
||||
#else
|
||||
return atop(pphys);
|
||||
return pphys;
|
||||
#endif
|
||||
} else {
|
||||
DRM_SPINUNLOCK(&dev->dma_lock);
|
||||
@ -134,7 +134,7 @@ paddr_t drm_mmap(dev_t kdev, off_t offset, int prot)
|
||||
*paddr = phys;
|
||||
return 0;
|
||||
#else
|
||||
return atop(phys);
|
||||
return phys;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user