coreboot/src/drivers/intel
Sean Rhodes b7ab2e0d56 drivers/intel/usb4: Guard usage of RFMU with a null check
Add a null check around the usage of the RFWU (Retimer Firmware
Update path) in the `usb4_retimer_execute_ec_cmd` function. This
ensures that any interaction with RFWU is only performed when the
path is valid, preventing potential null pointer dereferences.

This fixes are large amount of errors when `ec_retimer_fw_update_path`
isn't declared, such as comparisons like `If ((Local0 == Break))`.

Change-Id: I5a219345440f91332f680885b51e2cc09f14f7a7
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84615
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: coreboot org <coreboot.org@gmail.com>
2025-01-01 19:43:44 +00:00
..
dptf tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
fsp1_1 region: Introduce region_create() functions 2024-08-11 17:07:32 +00:00
fsp2_0 arch/x86: Rename breakpoint removal function 2024-12-10 08:48:00 +00:00
gma drivers/intel/gma/acpi: Limit OpRegion size 2024-11-17 05:33:49 +00:00
i210 drivers: Add SPDX license headers to Kconfig files 2024-02-18 01:59:32 +00:00
ish driver/intel/ish: Add config to indicate the presence of ISH MAIN firmware 2024-09-27 05:47:48 +00:00
mipi_camera tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
pmc_mux tree: Use <stdio.h> for snprintf 2024-05-29 10:33:54 +00:00
ptt drivers: Add SPDX license headers to Kconfig files 2024-02-18 01:59:32 +00:00
soundwire tree: Drop duplicated <device/{path,resource}.h> 2024-04-12 04:24:20 +00:00
usb4/retimer drivers/intel/usb4: Guard usage of RFMU with a null check 2025-01-01 19:43:44 +00:00