]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] DVB: dvb_frontend: fix dtv_property_dump for DTV_DVBT2_PLP_ID
authorAndreas Oberritter <obi@linuxtv.org>
Thu, 26 May 2011 10:54:14 +0000 (07:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Jun 2011 13:35:12 +0000 (10:35 -0300)
- Add missing entry to array "dtv_cmds".
- Set array size to DTV_MAX_COMMAND + 1 to avoid future off-by-ones.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c

index 98278041d75f5b790affdc7a024180ca91c0854a..bed7bfe2a9d1c18dd9b65b302fc1c79f1457b1d2 100644 (file)
@@ -904,7 +904,7 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
        .buffer = b \
 }
 
-static struct dtv_cmds_h dtv_cmds[] = {
+static struct dtv_cmds_h dtv_cmds[DTV_MAX_COMMAND + 1] = {
        _DTV_CMD(DTV_TUNE, 1, 0),
        _DTV_CMD(DTV_CLEAR, 1, 0),
 
@@ -966,6 +966,7 @@ static struct dtv_cmds_h dtv_cmds[] = {
        _DTV_CMD(DTV_ISDBT_LAYERC_TIME_INTERLEAVING, 0, 0),
 
        _DTV_CMD(DTV_ISDBS_TS_ID, 1, 0),
+       _DTV_CMD(DTV_DVBT2_PLP_ID, 1, 0),
 
        /* Get */
        _DTV_CMD(DTV_DISEQC_SLAVE_REPLY, 0, 1),