[BugFix] chunk_alloc pass NULL to buflib_shrink
old_chunk has already been unpinned therefore the address could be incorrect NULL will ensure buflib_shrink uses the same start address Change-Id: I9371e4f8263c6e5bf769108a8558dc938d4c8b87
This commit is contained in:
parent
4faffe0a9c
commit
b6d04d1ac0
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ bool chunk_realloc(struct chunk_alloc_header *hdr,
|
||||||
logf("%s shrink existing chunk array", __func__);
|
logf("%s shrink existing chunk array", __func__);
|
||||||
min_chunk = max_chunks;
|
min_chunk = max_chunks;
|
||||||
buflib_shrink(ctx, hdr->chunk_handle,
|
buflib_shrink(ctx, hdr->chunk_handle,
|
||||||
old_chunk, CHUNK_ARRSZ(max_chunks));
|
NULL, CHUNK_ARRSZ(max_chunks));
|
||||||
|
|
||||||
new_handle = hdr->chunk_handle;
|
new_handle = hdr->chunk_handle;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue