aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c3
-rw-r--r--include/linux/dvb/frontend.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index ff8cda0ac333..7fe9b3fb1e34 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -848,8 +848,7 @@ void dtv_property_dump(struct dtv_property *tvp)
848{ 848{
849 int i; 849 int i;
850 850
851 if( (tvp->cmd <= 0 || tvp->cmd > DTV_DELIVERY_SYSTEM) && 851 if (tvp->cmd <= 0 || tvp->cmd > DTV_MAX_COMMAND) {
852 tvp->cmd != DTV_API_VERSION) {
853 printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n", 852 printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n",
854 __func__, tvp->cmd); 853 __func__, tvp->cmd);
855 return; 854 return;
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h
index eb98f8c37cad..1cfcd1a86e8a 100644
--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -270,6 +270,8 @@ struct dvb_frontend_event {
270 270
271#define DTV_API_VERSION 35 271#define DTV_API_VERSION 35
272 272
273#define DTV_MAX_COMMAND DTV_API_VERSION
274
273typedef enum fe_pilot { 275typedef enum fe_pilot {
274 PILOT_ON, 276 PILOT_ON,
275 PILOT_OFF, 277 PILOT_OFF,