From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.105.134] helo=mgw-mx09.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LwXAi-0002kY-8X for linux-mtd@lists.infradead.org; Wed, 22 Apr 2009 07:47:15 +0000 Subject: Re: [patch/RESEND 2.6.30-rc2 1/3] NAND: don't walk past end of oobfree[] From: Artem Bityutskiy To: David Brownell In-Reply-To: <200904211951.21270.david-b@pacbell.net> References: <200904211951.21270.david-b@pacbell.net> Content-Type: text/plain; charset="UTF-8" Date: Wed, 22 Apr 2009 10:45:24 +0300 Message-Id: <1240386324.19218.13.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dwmw2@infradead.org, Thomas Gleixner , Linux MTD , "Narnakaje, Snehaprabha" , Andrew Morton Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2009-04-21 at 19:51 -0700, David Brownell wrote: > From: David Brownell > > Resolve issue noted by Sneha: when computing oobavail from > the list of free areas in the OOB, don't assume there will > always be an unused slot at the end. With ECC_HW_SYNDROME > and 4KB page chips, it's fairly likely there *won't* be one. > > Signed-off-by: David Brownell > Cc: "Narnakaje, Snehaprabha" " Hi, not that I tested your stuff, but it looks OK for me. So I've added the series to my l2-mtd tree, which means I'll ping dwmw2 about pulling it at some point. No guarantees, though. -- Best regards, Artem Bityutskiy (Битюцкий Артём)