lkml.org 
[lkml]   [2013]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 15/80] pnpacpi: fix incorrect TEST_ALPHA() test
    Date
    3.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Alan Cox <alan@lxorguk.ukuu.org.uk>

    commit cdc87c5a30f407ed1ce43d8a22261116873d5ef1 upstream.

    TEST_ALPHA() is broken and always returns 0.

    [akpm@linux-foundation.org: return false for '@' as well, per Bjorn]
    Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/pnp/pnpacpi/core.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/pnp/pnpacpi/core.c
    +++ b/drivers/pnp/pnpacpi/core.c
    @@ -58,7 +58,7 @@ static inline int __init is_exclusive_de
    if (!(('0' <= (c) && (c) <= '9') || ('A' <= (c) && (c) <= 'F'))) \
    return 0
    #define TEST_ALPHA(c) \
    - if (!('@' <= (c) || (c) <= 'Z')) \
    + if (!('A' <= (c) && (c) <= 'Z')) \
    return 0
    static int __init ispnpidacpi(const char *id)
    {



    \
     
     \ /
      Last update: 2013-01-09 23:21    [W:3.815 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site