[dm-devel] [PATCH V2 3/5] libmultipath: check blist before calling MALLOC in alloc_ble_device func

Martin Wilck mwilck at suse.com
Fri Aug 21 11:15:46 UTC 2020


On Fri, 2020-08-21 at 19:00 +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.
> 
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26 at huawei.com>
> Signed-off-by: lixiaokeng <lixiaokeng at huawei.com>
> Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>

This one is already applied in my "upstream-queue" branch.





More information about the dm-devel mailing list