[PATCH] Fix the return value in ttpci_budget_init()

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

 



Hi,

if the call to budget_register() fails in ttpci_budget_int(), ttpci_budget_init() returns success. The attached patch
will fix this problem.

- Hartmut
Signed-off-by: Hartmut Birr <e9hack@xxxxxxxxxxxxxx>

diff -r 47a89b96e10d linux/drivers/media/dvb/ttpci/budget-core.c
--- a/linux/drivers/media/dvb/ttpci/budget-core.c	Fri Jun 22 16:41:07 2007 -0400
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c	Sat Jun 23 16:56:30 2007 +0200
@@ -529,7 +529,7 @@ int ttpci_budget_init(struct budget *bud
 	if (bi->type != BUDGET_FS_ACTIVY)
 		saa7146_setgpio(dev, 2, SAA7146_GPIO_OUTHI);
 
-	if (budget_register(budget) == 0)
+	if ((ret = budget_register(budget)) == 0)
 		return 0; /* Everything OK */
 
 	/* An error occurred, cleanup resources */
_______________________________________________
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