Skip to content

Commit

Permalink
[media] Don't OOPS if videobuf_dvb_get_frontend return NULL
Browse files Browse the repository at this point in the history
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Abylay Ospan authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent b8f0d30 commit e66131c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx23885/cx23885-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e66131c

Please sign in to comment.