From: Wolfgang Denk Date: Sun, 06 Jul 2008 00:32:01 +0200 Subject: [U-Boot-Users] [PATCH v3 3/4] Fix an underflow bug in __lmb_alloc_base In-Reply-To: Your message of "Mon, 16 Jun 2008 13:58:55 CDT." <1213642736-20713-3-git-send-email-afleming@freescale.com> Message-ID: <20080705223201.39A0E24681@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 In message <1213642736-20713-3-git-send-email-afleming@freescale.com> you wrote: > __lmb_alloc_base can underflow if it fails to find free space. This was fixed > in linux with commit d9024df02ffe74d723d97d552f86de3b34beb8cc. This patch > merely updates __lmb_alloc_base to resemble the current version in Linux. > > Signed-off-by: Andy Fleming > --- > Rebased off the top of tree to ease application. > > lib_generic/lmb.c | 34 +++++++++++++++++++--------------- > 1 files changed, 19 insertions(+), 15 deletions(-) Applied, thanks. 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 Vulcans believe peace should not depend on force. -- Amanda, "Journey to Babel", stardate 3842.3