aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorAbylay Ospan <aospan@netup.ru>2011-07-15 14:01:07 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:07 -0400
commite66131cee501ee720b7b58a4b87073b8fbaaaba6 (patch)
tree3e6d783ea1db3d3fdee2c0ce7a5df1cea4ce0ba7 /drivers/media/video
parentb8f0d306b73162f9c9870ce5cd7b33b8204fcccc (diff)
[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 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)
1270 * implement MFE support. 1270 * implement MFE support.
1271 */ 1271 */
1272 fe0 = videobuf_dvb_get_frontend(&port->frontends, 1); 1272 fe0 = videobuf_dvb_get_frontend(&port->frontends, 1);
1273 if (fe0->dvb.frontend) 1273 if (fe0 && fe0->dvb.frontend)
1274 videobuf_dvb_unregister_bus(&port->frontends); 1274 videobuf_dvb_unregister_bus(&port->frontends);
1275 1275
1276 switch (port->dev->board) { 1276 switch (port->dev->board) {