V4L/DVB (8071): tda10023: Fix possible kernel oops during initialisation
authorOliver Endriss <o.endriss@gmx.de>
Fri, 20 Jun 2008 01:45:55 +0000 (22:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 26 Jun 2008 18:58:55 +0000 (15:58 -0300)
commitc9fa2b1eee9d10c2455d3cd148cf13b34d91bdef
tree2e8962d8f02a7c1ead9dbd45dc5e6603cf1f237d
parentad907fa39517ca35b46912fbfe2b77cd89e1d56a
V4L/DVB (8071): tda10023: Fix possible kernel oops during initialisation

If the i2c write fails during initialisation, an oops happens
because state->frontend.dvb is still undefined. Fixed.

Thanks to Sigmund Augdal for reporting this bug,
and to Hartmut Birr for suggesting the fix.

Thanks-to: Sigmund Augdal <sigmund@snap.tv>
Thanks-to: Hartmut Birr <e9hack@gmail.com>

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/frontends/tda10023.c