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>
(cherry picked from commit
80a7d04f532ddc3500acd7988917708a536ae15f)
goto err;
xch->fmem = xenforeignmemory_open(xch->error_handler, 0);
-
- if ( xch->xcall == NULL )
+ if ( xch->fmem == NULL )
goto err;
return xch;