diff options
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 4c3f0d7e355c..f44b64b8e614 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -848,6 +848,13 @@ 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) && | ||
852 | tvp->cmd != DTV_API_VERSION) { | ||
853 | printk("%s: tvp.cmd = 0x%08x (undefined/unknown/invalid)\n", | ||
854 | __func__, tvp->cmd); | ||
855 | return; | ||
856 | } | ||
857 | |||
851 | printk("%s() tvp.cmd = 0x%08x (%s)\n" | 858 | printk("%s() tvp.cmd = 0x%08x (%s)\n" |
852 | ,__FUNCTION__ | 859 | ,__FUNCTION__ |
853 | ,tvp->cmd | 860 | ,tvp->cmd |