提交 89b9e08f 编写于 作者: W Wei Yongjun 提交者: Konrad Rzeszutek Wilk

xen-platform: fix error return code in platform_pci_init()

Fix to return a negative error code from the error handling
case instead of 0, otherwise the error condition cann't be
reflected from the return value.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
上级 5602aba8
......@@ -156,7 +156,8 @@ static int platform_pci_init(struct pci_dev *pdev,
max_nr_gframes = gnttab_max_grant_frames();
grant_frames = alloc_xen_mmio(PAGE_SIZE * max_nr_gframes);
if (gnttab_setup_auto_xlat_frames(grant_frames))
ret = gnttab_setup_auto_xlat_frames(grant_frames);
if (ret)
goto out;
ret = gnttab_init();
if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册