lkml.org 
[lkml]   [2010]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 14/36] hvc_console: fix test on unsigned in hvc_console_print()
    Date
    From: Roel Kluin <roel.kluin@gmail.com>

    vtermnos[] is unsigned, so this test was wrong.

    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
    Cc: Christian Borntraeger <borntraeger@de.ibm.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/char/hvc_console.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/char/hvc_console.c b/drivers/char/hvc_console.c
    index 4c3b59b..465185f 100644
    --- a/drivers/char/hvc_console.c
    +++ b/drivers/char/hvc_console.c
    @@ -146,7 +146,7 @@ static void hvc_console_print(struct console *co, const char *b,
    return;

    /* This console adapter was removed so it is not usable. */
    - if (vtermnos[index] < 0)
    + if (vtermnos[index] == -1)
    return;

    while (count > 0 || i > 0) {
    --
    1.7.0.1


    \
     
     \ /
      Last update: 2010-03-03 00:53    [W:0.021 / U:62.176 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site