Avoid an oops if the board is not fully defined.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
au0828_dvb_register(dev);
_info("Registered device AU0828 [%s]\n",
+ au0828_boards[dev->board].name == NULL ? "Unset" :
au0828_boards[dev->board].name);
return 0;
struct au0828_dev *dev = purb->context;
int ptype = usb_pipetype(purb->pipe);
+ if (!dev)
+ return;
+
if (dev->urb_streaming == 0)
return;
{
struct au0828_dvb *dvb = &dev->dvb;
+ if(dvb->frontend == NULL)
+ return;
+
dvb_net_release(&dvb->net);
dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_mem);
dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_hw);