Re: [Xen-devel] [PATCH for-4.6 v2 1/8] libxl: properly clean up array in libxl_list_cpupool failure path

2015-07-28 Thread Ian Campbell
On Mon, 2015-07-27 at 18:45 +0100, Wei Liu wrote: > Document how cpupool_info works. Distinguish success (ERROR_FAIL + > ENOENT) vs failure in libxl_list_cpupool and properly clean up the array > in failure path. > > Also switch to libxl__realloc and call libxl_cpupool_{init,dispose} > where appr

Re: [Xen-devel] [PATCH for-4.6 v2 1/8] libxl: properly clean up array in libxl_list_cpupool failure path

2015-07-28 Thread Dario Faggioli
On Mon, 2015-07-27 at 18:45 +0100, Wei Liu wrote: > Document how cpupool_info works. Distinguish success (ERROR_FAIL + > ENOENT) vs failure in libxl_list_cpupool and properly clean up the array > in failure path. > > Also switch to libxl__realloc and call libxl_cpupool_{init,dispose} > where appr

[Xen-devel] [PATCH for-4.6 v2 1/8] libxl: properly clean up array in libxl_list_cpupool failure path

2015-07-27 Thread Wei Liu
Document how cpupool_info works. Distinguish success (ERROR_FAIL + ENOENT) vs failure in libxl_list_cpupool and properly clean up the array in failure path. Also switch to libxl__realloc and call libxl_cpupool_{init,dispose} where appropriate. There is change of behaviour. Previously if memory a