[media] cx18: fix kernel oops with tda8290 tuner
authorHans Verkuil <[email protected]>
Tue, 26 Aug 2014 05:59:53 +0000 (02:59 -0300)
committerMauro Carvalho Chehab <[email protected]>
Wed, 3 Sep 2014 11:53:02 +0000 (08:53 -0300)
This was caused by an uninitialized setup.config field.

Based on a suggestion from Devin Heitmueller.

Signed-off-by: Hans Verkuil <[email protected]>
Thanks-to: Devin Heitmueller <[email protected]>
Reported-by: Scott Robinson <[email protected]>
Tested-by: Hans Verkuil <[email protected]>
Cc: [email protected] # for v3.10 and up
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/pci/cx18/cx18-driver.c

index 716bdc57fac6fb298a904602675605d21c486d2a..83f5074706f9ad296e1bd315e377f037c87c6965 100644 (file)
@@ -1091,6 +1091,7 @@ static int cx18_probe(struct pci_dev *pci_dev,
                setup.addr = ADDR_UNSET;
                setup.type = cx->options.tuner;
                setup.mode_mask = T_ANALOG_TV;  /* matches TV tuners */
+               setup.config = NULL;
                if (cx->options.radio > 0)
                        setup.mode_mask |= T_RADIO;
                setup.tuner_callback = (setup.type == TUNER_XC2028) ?