Andrii Staikov
7472dfd33b
i40e: fix potential memory leaks in i40e_remove()
...
[ Upstream commit 5ca636d927a106780451d957734f02589b972e2b ]
Instead of freeing memory of a single VSI, make sure
the memory for all VSIs is cleared before releasing VSIs.
Add releasing of their resources in a loop with the iteration
number equal to the number of allocated VSIs.
Fixes: 41c445ff0f48 ("i40e: main driver core")
Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:27:33 +01:00
..
2023-10-25 11:13:33 +02:00
2023-09-23 10:46:59 +02:00
2023-08-30 16:35:13 +02:00
2023-11-08 11:21:09 +01:00
2023-08-11 11:33:32 +02:00
2023-11-08 11:21:07 +01:00
2023-11-08 11:21:09 +01:00
2023-10-25 11:13:31 +02:00
2023-02-22 12:46:01 +01:00
2023-10-10 21:43:39 +02:00
2023-10-10 21:43:39 +02:00
2023-09-23 10:46:54 +02:00
2023-09-23 10:47:01 +02:00
2023-09-23 10:46:59 +02:00
2023-01-18 09:26:22 +01:00
2023-11-08 11:21:08 +01:00
2023-08-30 16:35:16 +02:00
2023-02-06 07:46:31 +01:00
2023-08-11 11:33:39 +02:00
2023-08-11 11:33:32 +02:00
2023-02-22 12:46:02 +01:00
2023-10-25 11:13:33 +02:00
2023-11-08 11:21:07 +01:00
2023-10-25 11:13:32 +02:00
2023-01-18 09:26:26 +01:00
2023-06-28 10:14:19 +02:00
2023-08-11 11:33:53 +02:00
2023-04-20 12:02:12 +02:00
2023-11-08 11:21:06 +01:00
2023-08-11 11:33:32 +02:00
2023-10-25 11:13:30 +02:00
2023-10-25 11:13:29 +02:00
2023-11-08 11:21:08 +01:00
2023-01-18 09:26:38 +01:00
2023-11-08 11:21:08 +01:00
2023-01-18 09:26:28 +01:00
2023-05-17 11:11:44 +02:00
2023-08-11 11:33:40 +02:00
2023-11-08 11:21:05 +01:00
2023-09-23 10:47:05 +02:00
2023-10-10 21:43:40 +02:00
2023-08-11 11:33:34 +02:00
2023-05-30 12:38:35 +01:00
2023-08-11 11:33:40 +02:00
2023-08-11 11:33:45 +02:00
2023-10-25 11:13:33 +02:00
2023-10-10 21:43:41 +02:00
2023-11-20 10:27:33 +01:00
2023-06-28 10:14:20 +02:00
2023-09-23 10:47:00 +02:00
2023-03-22 13:26:14 +01:00
2023-09-23 10:46:56 +02:00
2023-10-10 21:43:39 +02:00
2023-11-08 11:21:10 +01:00
2023-08-30 16:35:11 +02:00
2023-05-30 12:38:36 +01:00
2023-10-25 11:13:33 +02:00
2023-11-08 11:21:09 +01:00
2023-06-21 15:38:57 +02:00
2023-09-23 10:47:02 +02:00
2023-06-21 15:38:57 +02:00
2023-11-08 11:21:08 +01:00
2023-09-23 10:46:52 +02:00
2023-10-10 21:43:40 +02:00
2023-11-08 11:21:09 +01:00
2023-08-11 11:33:37 +02:00
2023-09-23 10:46:54 +02:00
2023-05-17 11:11:44 +02:00
2023-08-11 11:33:32 +02:00
2023-08-11 11:33:53 +02:00
2023-10-10 21:43:41 +02:00
2023-03-11 16:26:55 +01:00
2023-04-05 11:14:16 +02:00
2023-11-08 11:21:10 +01:00
2023-01-18 09:26:23 +01:00
2023-11-08 11:21:10 +01:00
2023-01-18 09:26:23 +01:00
2023-08-11 11:33:32 +02:00
2023-11-08 11:21:09 +01:00
2023-11-08 11:21:05 +01:00
2023-01-18 09:26:25 +01:00
2023-08-11 11:33:38 +02:00
2023-10-10 21:43:39 +02:00
2023-10-10 21:43:42 +02:00