Merge pull request #130 from micrakow/kw-fix-ww16_19

Added missing return in metadata_probe_cores
This commit is contained in:
Michał Mielewczyk 2019-04-18 16:40:36 +02:00 committed by GitHub
commit d3bfbf6200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,8 +385,11 @@ void ocf_metadata_probe_cores(ocf_ctx_t ctx, ocf_volume_t volume,
const struct ocf_metadata_iface *iface;
context = env_vzalloc(sizeof(*context));
if (!context)
if (!context) {
cmpl(priv, -OCF_ERR_NO_MEM, 0);
return;
}
context->cmpl = cmpl;
context->priv = priv;