summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2004-05-24 17:54:43 +0000
committerMichael Hunold <devnull@localhost>2004-05-24 17:54:43 +0000
commit69cd64171bc82d6a825732217dde776d136fe8f9 (patch)
treea0b176e6ec63ce74b8669d1d2333c3e2a57216ea /linux/drivers/media/dvb
parent5402205afabc6d544e28caf7e855778c1db37f70 (diff)
downloadmediapointer-dvb-s2-69cd64171bc82d6a825732217dde776d136fe8f9.tar.gz
mediapointer-dvb-s2-69cd64171bc82d6a825732217dde776d136fe8f9.tar.bz2
- fix segmentation fault when using stv0299 driver, the private data pointer has to be initialized *before* the init functions is called...
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-ci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget-ci.c b/linux/drivers/media/dvb/ttpci/budget-ci.c
index 56ed4b079..fe97a9627 100644
--- a/linux/drivers/media/dvb/ttpci/budget-ci.c
+++ b/linux/drivers/media/dvb/ttpci/budget-ci.c
@@ -516,13 +516,13 @@ static int budget_ci_attach (struct saa7146_dev* dev,
spin_lock_init(&budget_ci->debilock);
budget_ci->budget.ci_present = 0;
+ dev->ext_priv = budget_ci;
+
if ((err = ttpci_budget_init (&budget_ci->budget, dev, info))) {
kfree (budget_ci);
return err;
}
- dev->ext_priv = budget_ci;
-
tasklet_init (&budget_ci->msp430_irq_tasklet, msp430_ir_interrupt,
(unsigned long) budget_ci);