V4L/DVB: Fix kernel Oops when number of NetUP Dual DVB-S2-CI cards more than DVB_MAX_...
authorAbylay Ospan <aospan@netup.ru>
Fri, 25 Jun 2010 11:01:28 +0000 (08:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:52:54 +0000 (14:52 -0300)
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cx23885-dvb.c

index 0a199d774d9b7473c37342f43d3629029d71c83b..3d70af283881e5203f4b7247ce3f373d16f0d840 100644 (file)
@@ -991,7 +991,7 @@ static int dvb_register(struct cx23885_tsport *port)
        ret = videobuf_dvb_register_bus(&port->frontends, THIS_MODULE, port,
                                        &dev->pci->dev, adapter_nr, 0,
                                        cx23885_dvb_fe_ioctl_override);
-       if (!ret)
+       if (ret)
                return ret;
 
        /* init CI & MAC */