Re: [dm-devel] [PATCH] dm-zoned: free dmz->ddev array in dmz_put_zoned_device

2023-09-20 Thread Fedor Pchelkin
On 23/09/20 04:06PM, Hannes Reinecke wrote: > On 9/20/23 12:51, Fedor Pchelkin wrote: > > Commit 4dba12881f88 ("dm zoned: support arbitrary number of devices") > > made the pointers to additional zoned devices to be stored in a > > dynamically allocated dmz->ddev array. However, this array is not f

[dm-devel] [PATCH] dm-zoned: free dmz->ddev array in dmz_put_zoned_device

2023-09-20 Thread Fedor Pchelkin
Commit 4dba12881f88 ("dm zoned: support arbitrary number of devices") made the pointers to additional zoned devices to be stored in a dynamically allocated dmz->ddev array. However, this array is not freed. Free it when cleaning up zoned device information inside dmz_put_zoned_device(). Assigning

Re: [dm-devel] [PATCH] dm-zoned: free dmz->ddev array in dmz_put_zoned_device

2023-09-20 Thread Hannes Reinecke
On 9/20/23 12:51, Fedor Pchelkin wrote: Commit 4dba12881f88 ("dm zoned: support arbitrary number of devices") made the pointers to additional zoned devices to be stored in a dynamically allocated dmz->ddev array. However, this array is not freed. Free it when cleaning up zoned device information