Fedor Pchelkin
ccd87fe7a0
dm zoned: free dmz->ddev array in dmz_put_zoned_devices
...
commit 9850ccd5dd88075b2b7fd28d96299d5535f58cc5 upstream.
Commit 4dba12881f
("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: 4dba12881f
("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 >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-10-10 21:53:39 +02:00
..
2023-07-27 08:44:12 +02:00
2022-01-27 10:54:20 +01:00
2019-11-05 14:53:03 -05:00
2020-01-07 12:07:08 -05:00
2020-03-03 10:02:46 -05:00
2021-03-09 11:11:12 +01:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2023-01-14 10:16:31 +01:00
2023-08-11 11:57:44 +02:00
2023-03-11 16:39:54 +01:00
2020-03-27 14:42:51 -04:00
2020-03-27 14:42:51 -04:00
2023-05-17 11:48:06 +02:00
2021-03-04 11:38:44 +01:00
2023-04-05 11:23:44 +02:00
2020-07-01 07:27:24 -06:00
2020-07-20 11:17:41 -04:00
2020-08-04 16:01:40 -04:00
2022-06-29 08:59:45 +02:00
2019-05-16 15:55:48 -07:00
2023-05-17 11:48:07 +02:00
2022-04-20 09:23:18 +02:00
2020-08-04 15:51:28 -04:00
2023-08-30 16:23:11 +02:00
2020-07-16 12:35:15 -07:00
2023-05-17 11:48:07 +02:00
2019-08-15 15:57:39 -04:00
2020-09-25 08:20:03 -06:00
2018-05-30 15:33:32 -06:00
2020-05-20 17:09:44 -04:00
2022-06-29 08:59:45 +02:00
2020-09-29 16:33:08 -04:00
2020-05-15 10:29:36 -04:00
2020-05-15 10:29:36 -04:00
2020-07-01 07:27:24 -06:00
2023-08-11 11:57:38 +02:00
2018-06-12 18:28:00 -07:00
2022-08-21 15:15:36 +02:00
2019-03-05 14:48:50 -05:00
2020-05-15 10:29:36 -04:00
2020-09-29 16:33:12 -04:00
2021-06-03 09:00:30 +02:00
2023-04-05 11:23:42 +02:00
2023-04-05 11:23:42 +02:00
2020-05-20 17:09:44 -04:00
2020-05-20 17:09:44 -04:00
2018-10-11 11:36:09 -04:00
2021-03-30 14:32:06 +02:00
2019-04-25 15:38:52 -04:00
2023-01-14 10:16:31 +01:00
2019-12-05 17:05:24 -05:00
2023-04-05 11:23:40 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2018-12-18 09:02:26 -05:00
2021-04-21 13:00:54 +02:00
2021-04-21 13:00:54 +02:00
2023-05-17 11:48:10 +02:00
2021-06-16 12:01:37 +02:00
2020-08-04 15:48:13 -04:00
2020-07-13 11:47:33 -04:00
2022-08-21 15:16:19 +02:00
2021-07-19 09:45:01 +02:00
2020-07-08 12:21:53 -04:00
2023-10-10 21:53:39 +02:00
2020-06-05 14:59:53 -04:00
2023-04-05 11:23:42 +02:00
2021-03-04 11:38:44 +01:00
2021-01-27 11:54:57 +01:00
2020-07-16 15:34:47 +02:00
2020-08-23 17:36:59 -05:00
2023-09-19 12:20:23 +02:00
2018-08-01 15:49:39 -07:00
2020-12-30 11:54:25 +01:00
2018-10-18 09:36:35 -07:00
2020-07-01 07:27:24 -06:00
2020-09-02 08:00:07 -06:00
2020-05-13 12:02:23 -07:00
2020-07-08 17:20:46 -06:00
2018-05-30 15:33:32 -06:00
2023-08-11 11:57:38 +02:00
2022-01-16 09:14:21 +01:00
2023-07-27 08:44:29 +02:00
2023-07-27 08:44:29 +02:00
2019-06-15 01:37:35 -06:00
2023-09-23 11:01:09 +02:00
2020-05-13 12:02:23 -07:00
2020-08-02 23:03:52 -07:00
2019-03-12 10:15:18 -07:00
2020-07-21 17:18:12 -07:00
2022-10-26 13:25:53 +02:00
2020-09-24 16:44:44 -07:00
2023-07-27 08:44:36 +02:00
2020-12-09 20:46:00 -08:00