[U-Boot-Users] [PATCH] Fix initrd length miscalculation in bootm command

Wolfgang Denk wd at denx.de
Tue Feb 6 01:43:07 CET 2007


In message <11707043793601-git-send-email-timur at freescale.com> you wrote:
> The do_bootm_linux() function was using the same variable ('len') to calculate
> the the dtu length and the initrd length, which meant that the initrd length
> was incorrect.  This patch creates renames 'len' and 'data' to 'initrd_len'
> and 'initrd_data', thereby preventing any future confusion.  It also deletes
> 'len' and 'data' because the dtu calculations don't actually need them.

I can't parse this. 'len' was used twice, but actually it wasn't used
in the second case, but you renamed the only remaining use it had?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Vor allem kein Gedanke! Nichts ist kompromittierender als ein  Gedan-
ke!            - Friedrich Wilhelm Nietzsche _Der Fall Wagner_ (1888)




More information about the U-Boot mailing list