[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120419.132558.135758710709714950.davem@davemloft.net>
Date: Thu, 19 Apr 2012 13:25:58 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: Tristram.Ha@...rel.com, bhutchings@...arflare.com,
netdev@...r.kernel.org
Subject: Re: [patch] ksz884x: don't copy too much in
netdev_set_mac_address()
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Thu, 19 Apr 2012 10:00:19 +0300
> MAX_ADDR_LEN is 32. ETH_ALEN is 6. mac->sa_data is a 14 byte array, so
> the memcpy() is doing a read past the end of the array. I asked about
> this on netdev and Ben Hutchings told me it's supposed to be copying
> ETH_ALEN bytes (thanks Ben).
>
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied, thanks Dan.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists