[U-Boot] [PATCH RESEND] Fix misuse of calloc() in linux/compat.h header

Marek Vasut marex at denx.de
Sat Jun 9 02:04:36 CEST 2012


Dear Wolfgang Denk,

> Dear Marek Vasut,
> 
> In message <201206090148.40933.marex at denx.de> you wrote:
> > > Multiplication being commutative, I see zero effect in this patch?
> > 
> > Weeeeell, not in every algebraic system. It has zero effect, it's only
> > about correctness [1]. Will applying this break anything?
> 
> In which way is "a * b" more (or less?) correct than "b * a" ?

In our natural integer system, it's all perfectly OK.

> What is the difference between allocating a contiguous sequence of
> 4096 single bytes, or allocating a single block of size 4096?

None.

> Best regards,
> 
> Wolfgang Denk

Best regards,
Marek Vasut


More information about the U-Boot mailing list