From ef77be1f50fe2a5f40a648685e7e688863ac9a9b Mon Sep 17 00:00:00 2001 From: Timur Tabi Date: Sat, 27 Jan 2007 17:41:49 -0600 Subject: [PATCH] --- yaml --- r: 46841 b: refs/heads/master c: 4942bd80e83d13bf394df4a8109bee39d861820f h: refs/heads/master i: 46839: 1aa0740ca9408b9f606b0f3d3de6af741e77d9cb v: v3 --- [refs] | 2 +- trunk/arch/powerpc/lib/rheap.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3cdfee7fde57..bc552affed7d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f3162f0664be49c72c1e6ce4a46848f9d96d790 +refs/heads/master: 4942bd80e83d13bf394df4a8109bee39d861820f diff --git a/trunk/arch/powerpc/lib/rheap.c b/trunk/arch/powerpc/lib/rheap.c index 57bf991ccd6e..4bbda6b2be45 100644 --- a/trunk/arch/powerpc/lib/rheap.c +++ b/trunk/arch/powerpc/lib/rheap.c @@ -85,7 +85,8 @@ static int grow(rh_info_t * info, int max_blocks) info->flags &= ~RHIF_STATIC_BLOCK; /* add all new blocks to the free list */ - for (i = 0, blk = block + info->max_blocks; i < new_blocks; i++, blk++) + blk = block + info->max_blocks - new_blocks; + for (i = 0; i < new_blocks; i++, blk++) list_add(&blk->list, &info->empty_list); return 0;