diff options
author | Abylay Ospan <aospan@netup.ru> | 2011-07-15 15:01:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:56:07 -0300 |
commit | e66131cee501ee720b7b58a4b87073b8fbaaaba6 (patch) | |
tree | 3e6d783ea1db3d3fdee2c0ce7a5df1cea4ce0ba7 /drivers/media | |
parent | b8f0d306b73162f9c9870ce5cd7b33b8204fcccc (diff) | |
download | linux-3.10-e66131cee501ee720b7b58a4b87073b8fbaaaba6.tar.gz linux-3.10-e66131cee501ee720b7b58a4b87073b8fbaaaba6.tar.bz2 linux-3.10-e66131cee501ee720b7b58a4b87073b8fbaaaba6.zip |
[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')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-dvb.c | 2 |
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 ad2fd13817f..aa83f07b1b0 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) { |