Skip to contentSkip to conversation

patch staging-slicoss-check-for-valid-hw-address.patch added to gregkh-2.6 tree

PATCH [email protected] 1 participant 1 message Dec 18, 2009 1 message not in the archive Staging

lore
Share & tools
lore

[email protected]

author Applied
#1 lore raw
In reply to a message not in the archive

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/

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.

---
 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 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);