Re: [dm-devel] [PATCH 05/16] libmultipath: fix double free in pgpolicyfn error paths

2019-08-14 Thread Martin Wilck
On Fri, 2019-08-02 at 11:33 -0500, Benjamin Marzinski wrote: > In the pgpolicy functions, if an error is encountered after > alloc_pathgroup() is called, but before the path group is added to a > multipath device with add_pathgroup(), the pathgroup needs to be > cleaned > up by calling free_pathgro

Re: [dm-devel] [PATCH 05/16] libmultipath: fix double free in pgpolicyfn error paths

2019-08-14 Thread Martin Wilck
On Fri, 2019-08-02 at 11:33 -0500, Benjamin Marzinski wrote: > In the pgpolicy functions, if an error is encountered after > alloc_pathgroup() is called, but before the path group is added to a > multipath device with add_pathgroup(), the pathgroup needs to be > cleaned > up by calling free_pathgro

[dm-devel] [PATCH 05/16] libmultipath: fix double free in pgpolicyfn error paths

2019-08-02 Thread Benjamin Marzinski
In the pgpolicy functions, if an error is encountered after alloc_pathgroup() is called, but before the path group is added to a multipath device with add_pathgroup(), the pathgroup needs to be cleaned up by calling free_pathgroup(). However, after the pathgroup has been added to the multipath devi