From: Wolfgang Denk Date: Tue, 06 Dec 2011 19:21:50 +0100 Subject: [U-Boot] [PATCH V7 5/5] omap-common: fixes BSS overwriting problem In-Reply-To: <4EDE56AB.3070504@gmail.com> References: <1317284033-16188-1-git-send-email-simonschwarzcor@gmail.com> <1320078187-28423-1-git-send-email-simonschwarzcor@gmail.com> <1320078187-28423-6-git-send-email-simonschwarzcor@gmail.com> <4EDE4E54.7060602@denx.de> <4EDE56AB.3070504@gmail.com> Message-ID: <20111206182150.63FAD18FB3B2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Schwarz, In message <4EDE56AB.3070504@gmail.com> you wrote: > > Why not use malloc for this? Thanks to changes in the FAT driver we now > have it in the SPL. No, please do NOT do that!!! I knew I should have never accepted to allow this in the SPL fromt he beginning, and indeed it was a mistake not to block this. Please now don't use it without thinking if it's really, really needed! I recommend NOT to use malloc() at all in SPL code. [Guess I should have a more carefull eye on all SPL related submissions and install a "grep-malloc-and-NAK" script. :-( ] 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 only perfect science is hind-sight.