summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bde0d30)
Return with error on fail to initialize ROC model.
Fixes:
014a9e222bac ("common/cnxk: add model init and IO handling API")
Cc: stable@dpdk.org
Signed-off-by: Hanumanth Pothula <hpothula@marvell.com>
plt_err("Failed to reserve mem for roc_model");
return -ENOMEM;
}
plt_err("Failed to reserve mem for roc_model");
return -ENOMEM;
}
- roc_model_init(mz->addr);
+ if (roc_model_init(mz->addr)) {
+ plt_err("Failed to init roc_model");
+ rte_memzone_free(mz);
+ return -EINVAL;
+ }
}
} else {
if (mz == NULL) {
}
} else {
if (mz == NULL) {