Re: [dm-devel] [PATCH 1/3] libmultipath: keep existing dm_info if you fail to get a new one

2021-12-06 Thread Benjamin Marzinski
On Fri, Dec 03, 2021 at 08:01:11AM +, Martin Wilck wrote: > On Thu, 2021-12-02 at 19:34 -0600, Benjamin Marzinski wrote: > > There are reasons that dm_get_info() can fail other than the > > multipath > > device not existing. If there is an existing dm_info structure and > > the > > call fails,

[dm-devel] [PATCH 1/3] libmultipath: keep existing dm_info if you fail to get a new one

2021-12-02 Thread Benjamin Marzinski
There are reasons that dm_get_info() can fail other than the multipath device not existing. If there is an existing dm_info structure and the call fails, don't free it. Signed-off-by: Benjamin Marzinski --- libmultipath/devmapper.c | 24 ++-- 1 file changed, 14 insertions(+),