From: Abylay Ospan Date: Fri, 15 Jul 2011 18:01:07 +0000 (-0300) Subject: [media] Don't OOPS if videobuf_dvb_get_frontend return NULL X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e66131cee501ee720b7b58a4b87073b8fbaaaba6;p=linux-beck.git [media] Don't OOPS if videobuf_dvb_get_frontend return NULL Signed-off-by: Abylay Ospan Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx23885/cx23885-dvb.c b/drivers/media/video/cx23885/cx23885-dvb.c index ad2fd13817f6..aa83f07b1b0f 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) {