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

Wolfgang Denk wd at denx.de
Sat Jun 9 01:58:56 CEST 2012


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" ?

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

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The first 90% of a project takes 90% of the time, the last 10%  takes
the other 90% of the time.


More information about the U-Boot mailing list