diff options
-rw-r--r-- | linux-core/drm_bufs.c | 1 | ||||
-rw-r--r-- | linux/drm_bufs.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c index 7270ff4a..a6f40f9a 100644 --- a/linux-core/drm_bufs.c +++ b/linux-core/drm_bufs.c @@ -693,6 +693,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp, buf->used = 0; buf->offset = (dma->byte_count + byte_count + offset); buf->address = (void *)(page + offset); + buf->bus_address = virt_to_bus(buf->address); buf->next = NULL; buf->waiting = 0; buf->pending = 0; diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index 7270ff4a..a6f40f9a 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -693,6 +693,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp, buf->used = 0; buf->offset = (dma->byte_count + byte_count + offset); buf->address = (void *)(page + offset); + buf->bus_address = virt_to_bus(buf->address); buf->next = NULL; buf->waiting = 0; buf->pending = 0; |