summaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorAbylay Ospan <aospan@netup.ru>2011-07-15 15:01:07 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 17:56:07 -0300
commite66131cee501ee720b7b58a4b87073b8fbaaaba6 (patch)
tree3e6d783ea1db3d3fdee2c0ce7a5df1cea4ce0ba7 /drivers/media/video
parentb8f0d306b73162f9c9870ce5cd7b33b8204fcccc (diff)
downloadop-kernel-dev-e66131cee501ee720b7b58a4b87073b8fbaaaba6.zip
op-kernel-dev-e66131cee501ee720b7b58a4b87073b8fbaaaba6.tar.gz
[media] Don't OOPS if videobuf_dvb_get_frontend return NULL
Signed-off-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/cx23885/cx23885-dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c
index ad2fd13..aa83f07 100644
--- a/drivers/media/video/cx23885/cx23885-dvb.c
+++ b/drivers/media/video/cx23885/cx23885-dvb.c
@@ -1270,7 +1270,7 @@ int cx23885_dvb_unregister(struct cx23885_tsport *port)
* implement MFE support.
*/
fe0 = videobuf_dvb_get_frontend(&port->frontends, 1);
- if (fe0->dvb.frontend)
+ if (fe0 && fe0->dvb.frontend)
videobuf_dvb_unregister_bus(&port->frontends);
switch (port->dev->board) {
OpenPOWER on IntegriCloud