From 846ea90bdc7345b5572b887752ef16bb36e2df49 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Mon, 24 Jul 2017 16:36:22 +0200 Subject: [PATCH] ftl: initialise the offset in the map --- source/ftl/map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ftl/map.c b/source/ftl/map.c index 52de529..374528a 100644 --- a/source/ftl/map.c +++ b/source/ftl/map.c @@ -312,6 +312,7 @@ static void reset_map(struct ftl_map *map) map->flags = 0; map->last_va = 0; map->last_pa = 0; + map->offset = 0; map->head = 0; map->tail = 0; map->root = UINT32_MAX;