aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGravatar Fedor Pchelkin <pchelkin@ispras.ru> 2023-09-20 13:51:16 +0300
committerGravatar Mike Snitzer <snitzer@kernel.org> 2023-09-20 13:48:06 -0400
commit9850ccd5dd88075b2b7fd28d96299d5535f58cc5 (patch)
treeac718fb6e72a5e45f56e51f3bd5981e089c5ce02 /kernel
parentLinux 6.6-rc2 (diff)
downloadlinux-9850ccd5dd88075b2b7fd28d96299d5535f58cc5.tar.gz
linux-9850ccd5dd88075b2b7fd28d96299d5535f58cc5.tar.bz2
linux-9850ccd5dd88075b2b7fd28d96299d5535f58cc5.zip
dm zoned: free dmz->ddev array in dmz_put_zoned_devices
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. Rename dmz_put_zoned_device to dmz_put_zoned_devices and fix it to free the dmz->ddev array when cleaning up zoned device information. Remove NULL assignment for all dmz->ddev elements and just free the dmz->ddev array instead. Found by Linux Verification Center (linuxtesting.org). Fixes: 4dba12881f88 ("dm zoned: support arbitrary number of devices") Cc: stable@vger.kernel.org Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions