]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5160): Saa7146_vv: pass correct memory size to pci_free_consistent
authorMarco Schluessler <marco@lordzodiac.de>
Wed, 31 Jan 2007 17:27:55 +0000 (14:27 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:35:09 +0000 (13:35 -0200)
Pass correct memory size to pci_free_consistent.

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/saa7146_fops.c

index b8dcfa16526665c03aa6342c47ae296acb9bfb92..c18a5da6493470ae3e3af67342e08650970441e4 100644 (file)
@@ -508,7 +508,7 @@ int saa7146_vv_release(struct saa7146_dev* dev)
 
        DEB_EE(("dev:%p\n",dev));
 
-       pci_free_consistent(dev->pci, SAA7146_RPS_MEM, vv->d_clipping.cpu_addr, vv->d_clipping.dma_handle);
+       pci_free_consistent(dev->pci, SAA7146_CLIPPING_MEM, vv->d_clipping.cpu_addr, vv->d_clipping.dma_handle);
        kfree(vv);
        dev->vv_data = NULL;
        dev->vv_callback = NULL;