+1
−1
Loading
A metadata region without mirror should have the INVALID enum set, otherwise it risks touching invalid parts of the array. The sb_shm_md not being set to NULL could cause the code to touch this freed pointer in the error path in ftl_md_create -> ftl_md_create_shm -> ftl_md_invalidate_shm calls. Signed-off-by:Kozlowski Mateusz <mateusz.kozlowski@intel.com> Signed-off-by:
Mariusz Barczak <mariusz.barczak@intel.com> Change-Id: I7fe9694dad535de5f6b2a4af27400fa125480605 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15258 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>