libxl/libxl_pci.c: Fix reverse logic when detaching device
authorChao Gao <chao.gao@intel.com>
Thu, 23 Feb 2017 23:12:10 +0000 (07:12 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 24 Feb 2017 11:09:28 +0000 (11:09 +0000)
commite55e6b641bba24fcaddb1914017b59197eaa92b9
tree4c6263c45bc3953a8707e52b7c21c5375d6fbc2e
parentcf5e1a74b9687be3d146e59ab10c26be6da9d0d4
libxl/libxl_pci.c: Fix reverse logic when detaching device

Commit 20b75251d97 ("libxl/libxl_pci.c: used LOG*D functions") reverses the
logic to call xc_deassign_device(). It makes the device unusable.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_pci.c