Heinrich Schuchardt
566f067349
efi_loader: improve error handling in try_load_entry()
...
The image is not unloaded if a security violation occurs.
If efi_set_load_options() fails, we do not free the memory allocated for
the optional data. We do not unload the image.
* Unload the image if a security violation occurs.
* Free load_options if efi_set_load_options() fails.
* Unload the image if efi_set_load_options() fails.
Fixes: 53f6a5aa8626 ("efi_loader: Replace config option for initrd loading")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2024-05-01 07:38:29 +02:00
..
2023-01-23 18:11:40 -05:00
2024-02-15 10:38:34 +01:00
2023-07-17 15:39:55 -04:00
2023-06-12 13:24:31 +02:00
2024-04-08 12:59:31 +02:00
2024-05-01 07:38:29 +02:00
2024-04-17 17:05:57 -06:00
2023-12-09 15:59:13 -05:00
2023-08-14 17:55:53 -04:00
2023-07-17 15:39:55 -04:00
2022-03-31 14:12:23 -04:00
2022-10-17 21:17:13 -06:00
2023-11-28 20:10:25 -05:00
2022-12-31 13:35:19 -05:00
2018-05-07 09:34:12 -04:00
2022-09-12 18:06:36 -04:00
2022-05-28 10:59:27 +02:00
2024-01-18 20:24:12 -05:00
2020-10-14 11:16:34 -04:00
2024-01-18 20:23:37 -05:00
2019-01-15 15:28:41 -05:00
2023-01-23 18:11:39 -05:00
2023-06-16 06:45:20 +02:00
2021-11-26 21:30:59 +01:00
2023-05-04 09:57:43 +02:00
2023-01-11 15:02:23 -05:00
2023-09-22 06:05:40 +08:00
2021-05-13 13:09:09 -04:00
2023-01-27 12:51:27 -05:00
2022-09-12 18:06:36 -04:00
2022-09-12 18:06:36 -04:00
2023-12-20 10:46:54 -05:00
2019-10-30 17:48:47 -04:00
2024-01-29 10:31:24 -05:00
2023-09-11 16:27:49 -04:00
2020-01-02 10:27:23 -05:00
2022-05-05 09:29:57 -04:00
2024-01-16 17:05:29 -05:00
2022-08-10 13:38:30 -04:00
2021-03-12 09:57:29 -05:00
2022-01-14 12:26:42 -05:00
2018-05-07 09:34:12 -04:00
2024-01-16 12:00:05 -05:00
2024-01-16 17:05:29 -05:00
2024-01-16 17:05:29 -05:00
2020-03-27 15:42:04 -04:00
2019-10-30 17:48:47 -04:00
2024-01-29 10:31:24 -05:00
2024-03-01 18:34:08 -05:00
2023-02-14 09:43:27 -07:00
2023-02-14 09:43:27 -07:00
2024-04-18 16:04:48 +03:00
2022-05-26 10:27:14 -04:00
2022-09-12 18:06:36 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2020-10-14 11:16:34 -04:00
2021-04-12 17:45:39 -04:00
2024-03-19 18:40:47 -04:00
2020-12-13 07:58:17 -07:00
2023-11-07 14:49:40 -05:00
2024-03-19 18:40:47 -04:00
2023-06-12 13:24:31 +02:00
2024-04-12 08:53:31 -06:00
2018-05-07 09:34:12 -04:00
2020-08-07 22:31:32 -04:00
2023-10-09 15:24:31 -04:00
2024-01-26 14:15:08 +01:00
2022-12-31 13:35:19 -05:00
2023-10-17 20:50:52 -04:00
2022-06-23 12:58:18 -04:00
2023-10-27 13:17:21 +03:00
2024-01-18 09:04:34 -05:00
2019-01-15 15:28:41 -05:00
2018-05-07 09:34:12 -04:00
2024-01-29 10:31:24 -05:00
2023-12-28 12:02:56 -05:00
2023-04-03 06:53:53 +12:00
2022-10-31 11:04:00 -04:00
2023-12-13 18:39:06 -05:00
2022-05-02 09:58:13 -04:00
2024-01-29 10:31:24 -05:00
2024-01-29 10:31:24 -05:00
2024-01-29 10:31:24 -05:00
2022-03-02 10:28:12 -05:00
2021-02-15 19:17:25 -05:00