Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38270
b: refs/heads/master
c: 6eb32a7
h: refs/heads/master
v: v3
  • Loading branch information
Sujoy Gupta authored and Mauro Carvalho Chehab committed Oct 3, 2006
1 parent d8bd69c commit 8df8661
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1db955acbda253051a3256708d0dbfec2781de2
refs/heads/master: 6eb32a792ec19816d68529805f8169ce3ba1b1a2
7 changes: 6 additions & 1 deletion trunk/drivers/media/video/video-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,12 @@ videobuf_iolock(struct videobuf_queue* q, struct videobuf_buffer *vb,
if (NULL == fbuf)
return -EINVAL;
/* FIXME: need sanity checks for vb->boff */
bus = (dma_addr_t)fbuf->base + vb->boff;
/*
* Using a double cast to avoid compiler warnings when
* building for PAE. Compiler doesn't like direct casting
* of a 32 bit ptr to 64 bit integer.
*/
bus = (dma_addr_t)(unsigned long)fbuf->base + vb->boff;
pages = PAGE_ALIGN(vb->size) >> PAGE_SHIFT;
err = videobuf_dma_init_overlay(&vb->dma,PCI_DMA_FROMDEVICE,
bus, pages);
Expand Down

0 comments on commit 8df8661

Please sign in to comment.