lkml.org 
[lkml]   [2006]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 115/141] V4L/DVB (3388): Ignore DiSEqC messages > 6 and < 3
    Date
    From: Manu Abraham <manu@linxtv.org>
    Date: 1141009765 -0300

    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>
    ---

    diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
    diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
    index d15d32c..cc68b7e 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(struc
    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]);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-03-20 17:04    [W:4.090 / U:0.488 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site