From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [PATCH net-next 10/10] staging: vt6656: inherit addr_assign_type along with dev_addr Date: Fri, 23 Aug 2013 15:09:38 +0300 Message-ID: <20130823120938.GV22811@mwanda> References: <1377250513-3662-1-git-send-email-bjorn@mork.no> <1377250513-3662-11-git-send-email-bjorn@mork.no> <20130823100333.GT22811@mwanda> <87y57s3cpa.fsf@nemi.mork.no> <20130823111500.GC4713@mwanda> <87txig3936.fsf@nemi.mork.no> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: devel@driverdev.osuosl.org, netdev@vger.kernel.org, Forest Bond , Greg Kroah-Hartman To: =?iso-8859-1?Q?Bj=F8rn?= Mork Return-path: Content-Disposition: inline In-Reply-To: <87txig3936.fsf@nemi.mork.no> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: driverdev-devel-bounces@linuxdriverproject.org List-Id: netdev.vger.kernel.org On Fri, Aug 23, 2013 at 02:06:21PM +0200, Bj=F8rn Mork wrote: > Dan Carpenter writes: > = > > Ah... Here is the first patch which adds eth_hw_addr_inherit() > > > > http://patchwork.ozlabs.org/patch/269365/ > > > > I don't think we've actually set dst->addr_len yet at this point so > > it doesn't do the memcpy(). This doesn't work. > = > Ouch. Yes, I see. The net_device is allocated using kzalloc just a few > lines earlier and there is no ether_setup or similar. Actually, it > doesn't look like it ever sets addr_len. Is that right? Does it work > even before this patch? Ha ha. That's a very good question. I have no idea. regards, dan carpenter