From 6e2d77b3a2d7efac85a5671e4c476cf8f8bc1faa Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Fri, 4 Jun 2004 20:32:55 +0000 Subject: - same as for budget-ci: make sure the data pointer is valid before budget-core init function is called --- linux/drivers/media/dvb/ttpci/budget-av.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/ttpci/budget-av.c') diff --git a/linux/drivers/media/dvb/ttpci/budget-av.c b/linux/drivers/media/dvb/ttpci/budget-av.c index f4ea0e9e3..7a80f544a 100644 --- a/linux/drivers/media/dvb/ttpci/budget-av.c +++ b/linux/drivers/media/dvb/ttpci/budget-av.c @@ -208,13 +208,13 @@ static int budget_av_attach (struct saa7146_dev* dev, memset(budget_av, 0, sizeof(struct budget_av)); + dev->ext_priv = budget_av; + if ((err = ttpci_budget_init(&budget_av->budget, dev, info))) { kfree(budget_av); return err; } - dev->ext_priv = budget_av; - /* knc1 initialization */ saa7146_write(dev, DD1_STREAM_B, 0x04000000); saa7146_write(dev, DD1_INIT, 0x07000600); -- cgit v1.2.3