tools/libxenctrl: fix error check after opening libxenforeignmemory
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 22 Feb 2017 13:27:34 +0000 (13:27 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 22 Feb 2017 14:27:22 +0000 (14:27 +0000)
commit80a7d04f532ddc3500acd7988917708a536ae15f
tree97b57b5ce2d1e3b14c7c693a44bb14894792d394
parent2c31b07ec74a29a81fdc278256c3517ae724f5e9
tools/libxenctrl: fix error check after opening libxenforeignmemory

Checking the value of xch->xcall is clearly incorrect. The code should be
checking xch->fmem (i.e. the return of the previously called function).

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_private.c