From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Wed, 6 Aug 2014 11:11:36 -0700 Subject: [U-Boot] [PATCH v2 09/10] arm: ls102xa: Add basic support for LS1021AQDS board In-Reply-To: <1404372264-2301-10-git-send-email-b18965@freescale.com> References: <1404372264-2301-1-git-send-email-b18965@freescale.com> <1404372264-2301-10-git-send-email-b18965@freescale.com> Message-ID: <53E26FD8.7020604@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/03/2014 12:24 AM, Alison Wang wrote: > diff --git a/lib/lmb.c b/lib/lmb.c > index 081e418..0903222 100644 > --- a/lib/lmb.c > +++ b/lib/lmb.c > @@ -295,7 +295,7 @@ phys_addr_t __lmb_alloc_base(struct lmb *lmb, phys_size_t size, ulong align, phy > if (max_addr == LMB_ALLOC_ANYWHERE) > base = lmb_align_down(lmbbase + lmbsize - size, align); > else if (lmbbase < max_addr) { > - base = min(lmbbase + lmbsize, max_addr); > + base = min(lmbbase + lmbsize - 1, max_addr); > base = lmb_align_down(base - size, align); > } else > continue; > Alison, You didn't mention the change to lmb.c. It looks like a bug fix. York