PD#SWPL-33580
Problem:
When mem block is in free list, the mem block is freed
Solution:
Avoid free mem block when block is in free list
Verify:
u212
Change-Id: I7884c78c2fbd7db826eda94419569b5873c5d14e
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
if (block->free) {
vdec_input_del_block_locked(input, block);
block->free(block->priv, block->handle);
+ kfree(block);
}
- kfree(block);
} else if (block->chunk_count == 0 &&
input->wr_block != block ) {/*don't free used block*/
if (block->size < input->default_block_size) {