[<prev] [next>] [day] [month] [year] [list]
Message-ID: <12611648323235@kroah.org>
Date: Fri, 18 Dec 2009 11:33:52 -0800
From: <gregkh@...e.de>
To: randy.dunlap@...cle.com, gregkh@...e.de,
linux-kernel@...r.kernel.org, sfr@...b.auug.org.au
Subject: patch staging-slicoss-check-for-valid-hw-address.patch added to gregkh-2.6 tree
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@...il.com Fri Dec 18 10:33:05 2009
From: "Denis Kirjanov <kirjanov@...il.com" <kirjanov@...il.com>
Date: Fri, 18 Dec 2009 10:52:45 +0300
Subject: staging: slicoss Check for valid hw address
To: gregkh@...e.de, liodot@...il.com, charrer@...critech.com
Cc: devel@...uxdriverproject.org
Message-ID: <20091218075245.GA4504@...dcone>
Check for valid hw address.
Signed-off-by: Denis Kirjanov <kirjanov@...il.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists