diff options
author | Antti Palosaari <crope@iki.fi> | 2012-07-01 20:29:15 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-05 17:59:20 +0200 |
commit | 84431c2ae5e41dfcdba75e2f81e732664381cec9 (patch) | |
tree | 4d9e68a8180244b70fc73430218b7dcaadd5fda7 /drivers/media/dvb/frontends | |
parent | [media] rtl28xxu: support Terratec Noxon DAB/DAB+ stick (diff) | |
download | linux-84431c2ae5e41dfcdba75e2f81e732664381cec9.tar.xz linux-84431c2ae5e41dfcdba75e2f81e732664381cec9.zip |
[media] tda10071: fix DiSEqC message len check
Message length check was wrong which could cause garbage sent to LNB,
but only in case garbage got from the userspace application.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/tda10071.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c index c21bc92d2811..3a1b6c0ac4ae 100644 --- a/drivers/media/dvb/frontends/tda10071.c +++ b/drivers/media/dvb/frontends/tda10071.c @@ -287,7 +287,7 @@ static int tda10071_diseqc_send_master_cmd(struct dvb_frontend *fe, dbg("%s: msg_len=%d", __func__, diseqc_cmd->msg_len); - if (diseqc_cmd->msg_len < 3 || diseqc_cmd->msg_len > 16) { + if (diseqc_cmd->msg_len < 3 || diseqc_cmd->msg_len > 6) { ret = -EINVAL; goto error; } |