xen/pt: xen_host_pci_config_read returns -errno, not -1 on failure
commit52c7265f602701751b55d437b347bd73debf9d91
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 29 Jun 2015 17:58:17 +0000 (29 13:58 -0400)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 10 Sep 2015 12:04:30 +0000 (10 12:04 +0000)
treeeb92da2c646c176118befdc68a2043095081220c
parentcf8124f0078a7625fdf9836589210267817ae0ae
xen/pt: xen_host_pci_config_read returns -errno, not -1 on failure

However the init routines assume that on errors the return
code is -1 (as the libxc API is) - while those xen_host_* routines follow
another paradigm - negative errno on return, 0 on success.

Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen/xen_pt.c