Re: [patch v2] net/fec: cleanup types in fec_get_mac()
From: Dan Carpenter <hidden>
Date: 2013-08-30 09:00:49
Also in:
kernel-janitors, linux-devicetree
From: Dan Carpenter <hidden>
Date: 2013-08-30 09:00:49
Also in:
kernel-janitors, linux-devicetree
On Fri, Aug 30, 2013 at 02:02:00AM +0000, Duan Fugang-B38611 wrote:
From: Ben Hutchings [mailto:bhutchings@solarflare.com] Data: Friday, August 30, 2013 2:49 AMquoted
To: Dan Carpenter Cc: Grant Likely; Rob Herring; David S. Miller; Estevam Fabio-R49496; Li Frank-B20596; Jim Baxter; Duan Fugang-B38611; netdev@vger.kernel.org; devicetree@vger.kernel.org; kernel-janitors@vger.kernel.org Subject: Re: [patch v2] net/fec: cleanup types in fec_get_mac() On Thu, 2013-08-29 at 11:25 +0300, Dan Carpenter wrote:quoted
My static checker complains that on some arches unsigned longs can be 8 characters which is larger than the buffer is only 6 chars. Additionally, Ben Hutchings points out that the buffer actually holds big endian data and the buffer we are reading from is CPU endian.It's not really as clear-cut as that. :-) But I think it's slightly more logical this way.Yes, it is not clear, pls remove somebody's name from the commit log.
Huh? No, I'm going to leave Ben's name as is. It's weird that you would ask for that. regards, dan carpenter