diff --git a/scst/src/scst_mem.c b/scst/src/scst_mem.c index d3f58eb6f..519ca629b 100644 --- a/scst/src/scst_mem.c +++ b/scst/src/scst_mem.c @@ -1670,6 +1670,7 @@ out_unlock: out_free: kfree(pool); + pool = NULL; goto out_unlock; } EXPORT_SYMBOL_GPL(sgv_pool_create);