From: Sascha Hauer <s.hauer@pengutronix.de>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] common: memory: fix off-by-one in tlsf_create
Date: Tue, 24 Apr 2012 15:19:59 +0200 [thread overview]
Message-ID: <20120424131959.GV3852@pengutronix.de> (raw)
In-Reply-To: <1335259383-22646-1-git-send-email-mkl@pengutronix.de>
On Tue, Apr 24, 2012 at 11:23:03AM +0200, Marc Kleine-Budde wrote:
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Applied, thanks.
Sascha
> ---
> common/memory.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/common/memory.c b/common/memory.c
> index faff33b..3b4a5ef 100644
> --- a/common/memory.c
> +++ b/common/memory.c
> @@ -58,7 +58,7 @@ void mem_malloc_init(void *start, void *end)
> malloc_end = (unsigned long)end;
> malloc_brk = malloc_start;
> #ifdef CONFIG_MALLOC_TLSF
> - tlsf_mem_pool = tlsf_create(start, (char *)end - (char *)start);
> + tlsf_mem_pool = tlsf_create(start, end - start + 1);
> #endif
> }
>
> --
> 1.7.4.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2012-04-24 13:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 9:23 Marc Kleine-Budde
2012-04-24 13:19 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120424131959.GV3852@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=mkl@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox