lkml.org 
[lkml]   [2009]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subjectpatch staging-slicoss-check-for-valid-hw-address.patch added to gregkh-2.6 tree
    From
    Date

    This is a note to let you know that I've just added the patch titled

    Subject: staging: slicoss Check for valid hw address

    to my gregkh-2.6 tree. Its filename is

    staging-slicoss-check-for-valid-hw-address.patch

    This tree can be found at
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


    From kirjanov@gmail.com Fri Dec 18 10:33:05 2009
    From: "Denis Kirjanov <kirjanov@gmail.com" <kirjanov@gmail.com>
    Date: Fri, 18 Dec 2009 10:52:45 +0300
    Subject: staging: slicoss Check for valid hw address
    To: gregkh@suse.de, liodot@gmail.com, charrer@alacritech.com
    Cc: devel@linuxdriverproject.org
    Message-ID: <20091218075245.GA4504@coldcone>


    Check for valid hw address.

    Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/staging/slicoss/slicoss.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/staging/slicoss/slicoss.c
    +++ b/drivers/staging/slicoss/slicoss.c
    @@ -2531,6 +2531,9 @@ static int slic_mac_set_address(struct n
    if (!adapter)
    return -EBUSY;

    + if (!is_valid_ether_addr(addr->sa_data))
    + return -EINVAL;
    +
    memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
    memcpy(adapter->currmacaddr, addr->sa_data, dev->addr_len);



    \
     
     \ /
      Last update: 2009-12-18 20:39    [W:0.025 / U:119.492 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site