ACK: [PATCH] lib: fwts_alloc: clear hash table at end of garbage collection
Alex Hung
alex.hung at canonical.com
Mon Feb 27 03:27:43 UTC 2017
On 2017-02-25 09:48 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> We need to ensure the table is clear once we've free'd all the
> hash entries from the table.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_alloc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/lib/src/fwts_alloc.c b/src/lib/src/fwts_alloc.c
> index 0e6122d..f07cab8 100644
> --- a/src/lib/src/fwts_alloc.c
> +++ b/src/lib/src/fwts_alloc.c
> @@ -137,6 +137,7 @@ static void hash_alloc_garbage_collect(void)
> ha = next;
> }
> }
> + memset(hash_allocs, 0, sizeof(hash_allocs));
> }
>
> /*
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list