patch staging-slicoss-check-for-valid-hw-address.patch added to gregkh-2.6 tree
[email protected]
AppliedThis 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/
Quoted 1 line
From [email protected] Fri Dec 18 10:33:05 2009
From: "Denis Kirjanov <[email protected]" <[email protected]>
Date: Fri, 18 Dec 2009 10:52:45 +0300
Subject: staging: slicoss Check for valid hw address
To: [email protected], [email protected], [email protected]
Cc: [email protected]
Message-ID: <20091218075245.GA4504@coldcone>
Check for valid hw address.
Signed-off-by Denis Kirjanov <[email protected]>
Signed-off-by Greg Kroah-Hartman <[email protected]>
--- drivers/staging/slicoss/slicoss.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/staging/slicoss/slicoss.c +3 -0
@@ -2531,6 +2531,9 @@ static int slic_mac_set_address(struct nif (!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);