summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/frontends/cx24110.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linxtv.org>2006-02-27 00:09:25 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-27 00:09:25 -0300
commit1e7eb89ba936fc1db54e247a336f3f55bdbc644d (patch)
tree1866b11f6590fe22ce7bd532578cb0a7cdc88d59 /drivers/media/dvb/frontends/cx24110.c
parent3b81fec4328799e94789e8404e6e8b7218c096f6 (diff)
V4L/DVB (3388): Ignore DiSEqC messages > 6 and < 3
Ignore invalid messages on cx24110 frontend. Thanks to Edgar Toernig Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/cx24110.c')
-rw-r--r--drivers/media/dvb/frontends/cx24110.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
index d15d32c51dc5..cc68b7e83b5e 100644
--- a/drivers/media/dvb/frontends/cx24110.c
+++ b/drivers/media/dvb/frontends/cx24110.c
@@ -418,6 +418,9 @@ static int cx24110_send_diseqc_msg(struct dvb_frontend* fe,
struct cx24110_state *state = fe->demodulator_priv;
unsigned long timeout;
+ if (cmd->msg_len < 3 || cmd->msg_len > 6)
+ return -EINVAL; /* not implemented */
+
for (i = 0; i < cmd->msg_len; i++)
cx24110_writereg(state, 0x79 + i, cmd->msg[i]);