Skip to content

Commit

Permalink
V4L/DVB (3388): Ignore DiSEqC messages > 6 and < 3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Feb 27, 2006
1 parent 3b81fec commit 1e7eb89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/dvb/frontends/cx24110.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 1e7eb89

Please sign in to comment.