From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Subject: Re: [git patches] net driver fixes Date: Thu, 16 Mar 2006 16:42:40 -0800 (PST) Message-ID: References: <20060317003041.GA28029@havoc.gtf.org> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Andrew Morton , netdev@vger.kernel.org, Linux Kernel Mailing List , Scott Bardone Return-path: To: Jeff Garzik In-Reply-To: <20060317003041.GA28029@havoc.gtf.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, 16 Mar 2006, Jeff Garzik wrote: > > Please pull from 'upstream-fixes' branch of > master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git The commit comments for the Chelsio driver fix are a bit unfortunate. The array clearly _does_ have three elements, it's just that the code used to access the fourth (that didn't exist), and now it accesses the third. So when the commit says "The array should contain 2 elements" it's just being really confused. Of course, using an array index of "cmdQ_restarted[2]" without any explanation for why it's index 2, the bug was inevitable. Maybe a symbolic value for the magic array indices? Linus