提交 39e0c4f4 编写于 作者: J Jiri Pirko 提交者: Jason Wang

rocker: return -ENOMEM in case of some world alloc fails

Until now, 0 is returned in this error case. Fix it ro return -ENOMEM.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NJason Wang <jasowang@redhat.com>
上级 0ab9cd9a
......@@ -1301,6 +1301,7 @@ static int pci_rocker_init(PCIDevice *dev)
for (i = 0; i < ROCKER_WORLD_TYPE_MAX; i++) {
if (!r->worlds[i]) {
err = -ENOMEM;
goto err_world_alloc;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册