[U-Boot] [PATCH v3 1/4] nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters

Scott Wood scottwood at freescale.com
Sat Mar 2 03:59:10 CET 2013


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


More information about the U-Boot mailing list