Re: [Xen-devel] [PATCH 2/3] libxl/remus: Move the assert before the info is used. [and 1 more messages]

2016-02-01 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 3/4] libxl/remus: Change the assert for info to an return"): > On Tue, Jan 26, 2016 at 04:30:59PM -0500, Konrad Rzeszutek Wilk wrote: > > The assert(info) is after quite a lot of manipulations > > on 'info' - which makes the assert pointless because if > > info was NULL

Re: [Xen-devel] [PATCH 2/3] libxl/remus: Move the assert before the info is used.

2016-01-26 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH 2/3] libxl/remus: Move the assert before the info is used."): > On Mon, 2016-01-25 at 16:06 -0500, Konrad Rzeszutek Wilk wrote: > > The assert(info) is after quite a lot of manipulations > > on 'info' - which makes the assert pointless because if > > info was NULL

Re: [Xen-devel] [PATCH 2/3] libxl/remus: Move the assert before the info is used.

2016-01-26 Thread Ian Campbell
On Mon, 2016-01-25 at 16:06 -0500, Konrad Rzeszutek Wilk wrote: > The assert(info) is after quite a lot of manipulations > on 'info' - which makes the assert pointless because if > info was NULL it would have crashed earlier. > > Move it earlier so that it guards before we try using > the 'info' s

[Xen-devel] [PATCH 2/3] libxl/remus: Move the assert before the info is used.

2016-01-25 Thread Konrad Rzeszutek Wilk
The assert(info) is after quite a lot of manipulations on 'info' - which makes the assert pointless because if info was NULL it would have crashed earlier. Move it earlier so that it guards before we try using the 'info' structure. CC: Wen Congyang CC: Yang Hongyang Signed-off-by: Konrad Rzeszu