Thread: [Linux1394-cvslog] rev 775 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2003-02-08 17:38:25
|
Author: bencollins Date: 2003-02-08 12:37:47 -0500 (Sat, 08 Feb 2003) New Revision: 775 Modified: trunk/video1394.c Log: Pass correct size to dma_region_alloc Modified: trunk/video1394.c ============================================================================== --- trunk/video1394.c (original) +++ trunk/video1394.c 2003-02-08 12:37:47.000000000 -0500 @@ -233,7 +233,8 @@ /* Init the regions for easy cleanup */ dma_region_init(&d->dma); - if (dma_region_alloc(&d->dma, d->buf_size, ohci->dev, PCI_DMA_BIDIRECTIONAL)) { + if (dma_region_alloc(&d->dma, d->num_desc * d->buf_size, ohci->dev, + PCI_DMA_BIDIRECTIONAL)) { PRINT(KERN_ERR, ohci->id, "Failed to allocate dma buffer"); free_dma_iso_ctx(d); return NULL; |