[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>
This commit is contained in:
parent
b8f0d306b7
commit
e66131cee5
1 changed files with 1 additions and 1 deletions
|
@ -1270,7 +1270,7 @@ int cx23885_dvb_unregister(struct cx23885_tsport *port)
|
||||||
* implement MFE support.
|
* implement MFE support.
|
||||||
*/
|
*/
|
||||||
fe0 = videobuf_dvb_get_frontend(&port->frontends, 1);
|
fe0 = videobuf_dvb_get_frontend(&port->frontends, 1);
|
||||||
if (fe0->dvb.frontend)
|
if (fe0 && fe0->dvb.frontend)
|
||||||
videobuf_dvb_unregister_bus(&port->frontends);
|
videobuf_dvb_unregister_bus(&port->frontends);
|
||||||
|
|
||||||
switch (port->dev->board) {
|
switch (port->dev->board) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue