zephyr/soc/intel
Kai Vehmanen 2dd648698f soc/intel_adsp: ipc: initialize semaphore in driver init
The ipc driver device data (struct intel_adsp_ipc_data) contains a
semaphore. Upon device init, the device data is zeroed out. This is safe
for other fields, but the semaphore should be properly initialized
before use.

This lack of initialization leads to a system crash when CONFIG_POLL is
enabled (e.g. to enable CONFIG_SHELL), IPC driver handles an interrupt
and executes k_sem_give() on a uninitialized semaphore object. This will
eventually lead to null dereference in z_handle_obj_poll_events().

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2024-05-06 22:51:06 +01:00
..
alder_lake soc: x86: add gpio acpi resource enumeration 2024-04-22 06:50:38 -07:00
apollo_lake
atom
common soc: x86: add gpio acpi resource enumeration 2024-04-22 06:50:38 -07:00
elkhart_lake
intel_adsp soc/intel_adsp: ipc: initialize semaphore in driver init 2024-05-06 22:51:06 +01:00
intel_ish
intel_niosv
intel_socfpga
intel_socfpga_std
lakemont
raptor_lake soc: x86: add gpio acpi resource enumeration 2024-04-22 06:50:38 -07:00