[media] cx88-dvb avoid dangling core->gate_ctrl pointer
authorDavid Fries <david@fries.net>
Thu, 15 Dec 2011 04:59:20 +0000 (01:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 30 Dec 2011 19:38:15 +0000 (17:38 -0200)
commit7b0962d32362a0d56627a1dfdb4e8229c5f51f94
tree9cf041ff5778e3479808f50487a730ca60ea518d
parentb16ec6f735b8f8588c7c3e7703f7ad6267715eb8
[media] cx88-dvb avoid dangling core->gate_ctrl pointer

dvb_register calls videobuf_dvb_register_bus, but if that returns
a failure the module will be unloaded without clearing the
value of core->gate_ctrl which will cause an oops in macros
called from video_open in cx88-video.c

Signed-off-by: David Fries <David@Fries.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Istvan Varga <istvan_v@mailbox.hu>
Cc: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-dvb.c