diff options
author | Manu Abraham <manu@kromtek.com> | 2006-02-26 15:12:54 +0400 |
---|---|---|
committer | Manu Abraham <manu@kromtek.com> | 2006-02-26 15:12:54 +0400 |
commit | cd06ad7d360e3a4ff73943c2c955108cded4e00f (patch) | |
tree | 4cf5ab44d4720dbd07f0d5d0f273fe2e3522fad8 /linux/drivers/media | |
parent | 0bc558f3ff40d347b70a653c5dfbe41a5e7f5297 (diff) | |
download | mediapointer-dvb-s2-cd06ad7d360e3a4ff73943c2c955108cded4e00f.tar.gz mediapointer-dvb-s2-cd06ad7d360e3a4ff73943c2c955108cded4e00f.tar.bz2 |
Ignore DiSEqC messages > 6 and < 3
Thanks to Edgar Toernig
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/frontends/cx24110.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24110.c b/linux/drivers/media/dvb/frontends/cx24110.c index d15d32c51..cc68b7e83 100644 --- a/linux/drivers/media/dvb/frontends/cx24110.c +++ b/linux/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]); |