[Xen-devel] [PATCH] libvchan: Fix cleanup when xc_gntshr_open failed

2017-07-26 Thread Marek Marczykowski-Górecki
If xc_gntshr_open failed the only thing to cleanup is free allocated memory. So instead of calling libxenvchan_close (which assume valid calculated buffers being mmaped already) free memory and return. Signed-off-by: Marek Marczykowski-Górecki --- tools/libvchan/init.c | 6 -- 1 file changed

Re: [Xen-devel] [PATCH] libvchan: Fix cleanup when xc_gntshr_open failed

2017-07-28 Thread Wei Liu
On Wed, Jul 26, 2017 at 11:27:14PM +0200, Marek Marczykowski-Górecki wrote: > If xc_gntshr_open failed the only thing to cleanup is free allocated > memory. So instead of calling libxenvchan_close (which assume > valid calculated buffers being mmaped already) free memory and return. > > Signed-off