ZhaoJinming
20da495f2d
ice: dpll: fix memory leak in ice_dpll_init_info error paths
...
Several error return paths in ice_dpll_init_info() directly return
without freeing previously allocated resources, causing memory leaks:
- When de->input_prio allocation fails, d->inputs is leaked
- When dp->input_prio allocation fails, d->inputs and de->input_prio
are leaked
- When ice_get_cgu_rclk_pin_info() fails, all previously allocated
inputs/outputs/input_prio are leaked
- When ice_dpll_init_pins_info(RCLK_INPUT) fails, same resources
are leaked
Fix this by jumping to the deinit_info label which properly calls
ice_dpll_deinit_info() to free all allocated resources.
Fixes: d7999f5ea6 ("ice: implement dpll interface to control cgu")
Signed-off-by: ZhaoJinming <zhaojinming@uniontech.com >
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com >
Tested-by: Rinitha S <sx.rinitha@intel.com > (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com >
2026-06-22 14:44:50 -07:00
..
2026-05-25 14:03:06 -07:00
2026-05-18 19:00:43 -07:00
2026-06-13 13:24:35 -07:00
2026-06-13 13:24:35 -07:00
2026-06-13 13:24:35 -07:00
2026-02-21 20:03:00 -08:00
2025-02-26 19:51:37 -08:00
2026-03-05 08:02:04 -08:00
2025-09-19 08:42:07 -07:00
2026-06-22 14:04:01 -07:00
2026-06-13 13:24:35 -07:00
2025-07-24 09:22:26 -07:00
2025-07-24 09:22:26 -07:00
2026-06-13 13:24:35 -07:00
2026-06-13 13:24:35 -07:00
2026-05-08 16:01:09 -07:00
2025-05-09 11:35:43 -07:00
2025-04-30 13:09:08 -07:00
2025-07-24 09:22:26 -07:00
2025-08-25 09:44:43 -07:00
2024-11-13 10:30:09 -08:00
2025-09-11 12:10:31 -07:00
2025-07-18 09:02:28 -07:00
2026-06-22 14:44:50 -07:00
2026-06-13 13:24:36 -07:00
2026-02-21 17:09:51 -08:00
2024-10-08 14:08:19 -07:00
2026-06-22 14:04:01 -07:00
2024-12-17 09:32:08 -08:00
2025-04-11 11:58:57 -07:00
2026-06-22 14:04:01 -07:00
2025-01-24 10:49:42 -08:00
2025-11-27 18:34:21 -08:00
2024-11-04 13:09:33 -08:00
2026-02-21 17:09:51 -08:00
2025-07-18 09:02:28 -07:00
2025-11-06 14:19:43 -08:00
2026-02-21 17:09:51 -08:00
2025-11-06 14:19:39 -08:00
2026-05-02 19:12:46 -07:00
2024-04-22 13:05:19 -07:00
2026-02-21 17:09:51 -08:00
2025-02-10 08:52:04 -08:00
2025-09-19 08:42:07 -07:00
2024-07-03 19:36:52 -07:00
2025-04-30 13:09:08 -07:00
2026-02-28 08:43:56 -08:00
2026-02-21 17:09:51 -08:00
2025-02-05 09:04:57 -08:00
2026-02-21 17:09:51 -08:00
2025-09-19 08:42:08 -07:00
2025-10-29 13:55:21 -07:00
2026-06-13 13:24:35 -07:00
2026-01-26 09:32:36 -08:00
2026-06-22 14:04:01 -07:00
2025-07-24 09:22:26 -07:00
2024-04-22 13:05:19 -07:00
2024-08-26 09:40:44 -07:00
2025-01-24 10:49:30 -08:00
2026-02-21 17:09:51 -08:00
2025-01-24 10:49:30 -08:00
2025-11-06 14:19:39 -08:00
2026-04-18 12:01:33 -07:00
2026-06-13 13:24:36 -07:00
2026-06-13 13:24:36 -07:00
2026-06-17 08:17:00 +01:00
2026-06-13 13:24:36 -07:00
2026-03-23 13:29:07 -07:00
2024-09-06 11:01:24 -07:00
2026-06-13 13:24:35 -07:00
2025-07-24 09:22:26 -07:00
2024-04-22 13:05:19 -07:00
2026-04-18 12:01:33 -07:00
2024-09-06 11:01:24 -07:00
2024-09-06 11:01:24 -07:00
2024-09-06 11:01:24 -07:00
2026-02-21 17:09:51 -08:00
2025-08-25 10:59:57 +02:00
2026-04-09 13:27:48 -04:00
2024-07-11 09:40:56 -07:00
2026-02-21 17:09:51 -08:00
2025-04-11 10:45:52 -07:00
2025-08-13 18:26:17 -07:00
2026-02-05 15:57:46 +01:00
2026-02-05 15:57:46 +01:00
2026-06-13 13:24:36 -07:00
2026-06-13 13:24:36 -07:00
2026-01-26 09:32:36 -08:00
2026-01-26 09:32:36 -08:00
2026-04-18 12:01:34 -07:00
2026-04-18 12:01:34 -07:00
2026-06-13 13:24:35 -07:00
2025-02-25 19:09:36 -08:00
2026-06-22 14:04:01 -07:00
2025-11-06 14:19:43 -08:00
2025-07-24 09:22:26 -07:00
2024-10-08 14:37:15 -07:00
2024-04-03 09:16:19 -07:00
2025-07-24 09:22:26 -07:00
2026-02-21 17:09:51 -08:00
2024-09-30 14:23:31 -07:00
2024-09-06 11:01:24 -07:00
2026-03-05 08:02:03 -08:00
2025-10-29 13:55:16 -07:00
2026-06-13 13:24:36 -07:00
2026-06-13 13:24:36 -07:00