[media] dvb_frontend: regression fix: add a missing inc inside the loop
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jan 2012 13:24:41 +0000 (11:24 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jan 2012 18:43:04 +0000 (16:43 -0200)
without it, the loop will run forever!

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c

index 678e329796a13a9187a3bb8ae60d22f67b58d1b8..cd3c0f67c85d4e10f01275e2ef8ab1827bd077e8 100644 (file)
@@ -1481,6 +1481,7 @@ static int set_delivery_system(struct dvb_frontend *fe, u32 desired_system)
                                        __func__, desired_system);
                                return 0;
                        }
+                       ncaps++;
                }
                type = dvbv3_type(desired_system);