Re: inconsistent use of saa7146_pgtable_free?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





You found the problem. Do you want to prepare and submit the patch?
Please don't forget the patch description and Signed-off-by line.

I just wanted to help. I hope this is ok.

Regards.
 


--- v4l-dvb/linux/drivers/media/dvb/ttpci/budget-core.c.orig	2007-04-22 04:53:50.000000000 -0700
+++ v4l-dvb/linux/drivers/media/dvb/ttpci/budget-core.c	2007-04-22 04:59:10.000000000 -0700
@@ -488,6 +488,8 @@
 err:
 	i2c_del_adapter(&budget->i2c_adap);
 
+	saa7146_pgtable_free(dev->pci, &budget->pt);
+	
 	vfree(budget->grabbing);
 
 	dvb_unregister_adapter(&budget->dvb_adapter);
--- v4l-dvb/linux/drivers/media/dvb/ttpci/av7110.c.orig	2007-04-22 04:54:32.000000000 -0700
+++ v4l-dvb/linux/drivers/media/dvb/ttpci/av7110.c	2007-04-22 05:04:56.000000000 -0700
@@ -2679,8 +2679,9 @@
 err_pci_free_5:
 	pci_free_consistent(pdev, 8192, av7110->debi_virt, av7110->debi_bus);
 err_saa71466_vfree_4:
-	if (!av7110->grabbing)
+	if (av7110->grabbing)
 		saa7146_pgtable_free(pdev, &av7110->pt);
+		vfree(av7110->grabbing);
 err_i2c_del_3:
 	i2c_del_adapter(&av7110->i2c_adap);
 err_dvb_unregister_adapter_2:
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux