lkml.org 
[lkml]   [2006]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 09/26] pcmcia: permit single-character-identifiers
    From: Janos Farkas <chexum@gmail.com>

    For some time, the core pcmcia drivers seem not to think single
    character prod_ids are valid, thus preventing the "cleverly" named

    "D" "Link DWL-650 11Mbps WLAN Card"

    Before (as in 2.6.16):
    PRODID_1=""
    PRODID_2="Link DWL-650 11Mbps WLAN Card"
    PRODID_3="Version 01.02"
    PRODID_4=""
    MANFID=0156,0002
    FUNCID=6

    After (with the patch)
    PRODID_1="D"
    PRODID_2="Link DWL-650 11Mbps WLAN Card"
    PRODID_3="Version 01.02"
    PRODID_4=""
    MANFID=0156,0002
    FUNCID=6

    Signed-off-by: Janos Farkas <chexum@gmail.com>
    Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/pcmcia/ds.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- linux-2.6.16.1.orig/drivers/pcmcia/ds.c
    +++ linux-2.6.16.1/drivers/pcmcia/ds.c
    @@ -546,7 +546,7 @@ static int pcmcia_device_query(struct pc
    tmp = vers1->str + vers1->ofs[i];

    length = strlen(tmp) + 1;
    - if ((length < 3) || (length > 255))
    + if ((length < 2) || (length > 255))
    continue;

    p_dev->prod_id[i] = kmalloc(sizeof(char) * length,
    --
    -
    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-04-05 02:10    [W:3.308 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site