Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753921AbXJXBPX (ORCPT ); Tue, 23 Oct 2007 21:15:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752929AbXJXBPJ (ORCPT ); Tue, 23 Oct 2007 21:15:09 -0400 Received: from emailhub.stusta.mhn.de ([141.84.69.5]:40274 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752454AbXJXBPI (ORCPT ); Tue, 23 Oct 2007 21:15:08 -0400 Date: Wed, 24 Oct 2007 03:15:35 +0200 From: Adrian Bunk To: Jeff Garzik Cc: David Miller , davej@redhat.com, auke-jan.h.kok@intel.com, ajax@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] e1000, e1000e valid-addr fixes Message-ID: <20071024011535.GZ30533@stusta.de> References: <471E2AD0.1000500@intel.com> <471E5C21.8030908@garzik.org> <20071023212026.GF7793@redhat.com> <20071023.145339.55504234.davem@davemloft.net> <471E9801.2000006@garzik.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <471E9801.2000006@garzik.org> User-Agent: Mutt/1.5.16 (2007-06-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 32 On Tue, Oct 23, 2007 at 08:55:29PM -0400, Jeff Garzik wrote: > Actually, looking over the code I see obvious bugs in the logic: > > An invalid ethernet address should not cause device loading to fail, > because the user is given the opportunity to supply a MAC address via > userspace (ifconfig or whatever) before the interface goes up. > > I just created the attached -bug fix- patch as illustration, though I have > not committed it, waiting for comment. >... Is there a good reason why we have such checks duplicated in the drivers (with every driver doing it differently...) instead of doing it in net/core/dev.c? > Jeff cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/