From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 1 Mar 2013 20:59:10 -0600 Subject: [U-Boot] [PATCH v3 1/4] nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters In-Reply-To: <20130301155740.GA25797@bill-the-cat> (from trini@ti.com on Fri Mar 1 09:57:40 2013) References: <1362078548-24308-2-git-send-email-trini@ti.com> <1362101871.25315.20@snotra> <20130301155740.GA25797@bill-the-cat> Message-ID: <1362193150.30277.19@snotra> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03/01/2013 09:57:40 AM, Tom Rini wrote: > On Thu, Feb 28, 2013 at 07:37:51PM -0600, Scott Wood wrote: > > >+ * @param lim maximum size that length may be in > order to not > > >+ * exceed the buffer > > > > s/that length may be/that actual may be/ > > No? We check that the requested length to something will fit even if > the > caller doesn't care to know what actual is. What I mean is that we're not saying "if (length > lim) error". We compute the actual, and if the actual exceeds "lim", then there's an error. -Scott