Re: [dm-devel] [PATCH 4/6] libmultipath: check blist before calling MALLOC in alloc_ble_device func

2020-08-18 Thread Benjamin Marzinski
On Mon, Aug 17, 2020 at 10:51:49AM +0200, Martin Wilck wrote: > On Sun, 2020-08-16 at 09:45 +0800, Zhiqiang Liu wrote: > > In alloc_ble_device func, ble is firstly allocated by calling MALLOC, > > and then input blist is checked whether it is valid. If blist is not > > valid, ble will be freed

Re: [dm-devel] [PATCH 4/6] libmultipath: check blist before calling MALLOC in alloc_ble_device func

2020-08-17 Thread Martin Wilck
On Sun, 2020-08-16 at 09:45 +0800, Zhiqiang Liu wrote: > In alloc_ble_device func, ble is firstly allocated by calling MALLOC, > and then input blist is checked whether it is valid. If blist is not > valid, ble will be freed without using. > > Here, we should check blist firstly. > >

[dm-devel] [PATCH 4/6] libmultipath: check blist before calling MALLOC in alloc_ble_device func

2020-08-15 Thread Zhiqiang Liu
In alloc_ble_device func, ble is firstly allocated by calling MALLOC, and then input blist is checked whether it is valid. If blist is not valid, ble will be freed without using. Here, we should check blist firstly. Signed-off-by: Zhiqiang Liu Signed-off-by: lixiaokeng ---