Merge pull request #638 from mmichal10/missing-return
Add missing return in raw_ram_zero() in error path
This commit is contained in:
commit
fe990effb1
@ -272,8 +272,11 @@ static void raw_ram_zero(ocf_cache_t cache, struct ocf_metadata_raw *raw,
|
||||
struct ocf_raw_ram_zero_ctx *ctx;
|
||||
|
||||
ctx = env_malloc(sizeof(*ctx), ENV_MEM_NORMAL);
|
||||
if (!ctx)
|
||||
if (!ctx) {
|
||||
cmpl(priv, -OCF_ERR_NO_MEM);
|
||||
return;
|
||||
}
|
||||
|
||||
ctx->cmpl = cmpl;
|
||||
ctx->priv = priv;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user