zephyr/drivers
Gaetan Perrot 7d5902dd1b drivers: akm09918c: fix null dereference in submit function
Fix a null pointer dereference in akm09918c_submit(), where writeByte_sqe
was dereferenced before checking if it was NULL.

Coverity reported this as CID 516247: the pointer returned by
i2c_rtio_copy_reg_write_byte() may be NULL, and accessing its `flags`
field before checking leads to undefined behavior.

Move the access to writeByte_sqe->flags after confirming both
writeByte_sqe and cb_sqe are valid.

Fixes: CID 516247

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2025-07-01 19:03:19 -05:00
..
adc
audio drivers: audio: dmic_mcux: init active_buf_idx when setting up dma 2025-07-01 19:03:07 -05:00
auxdisplay drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
bbram
bluetooth drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
cache
can drivers: can: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
charger
clock_control drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
comparator
console
coredump
counter drivers: counter: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
crypto drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
dac drivers: dac: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
dai
debug
disk
display drivers: display: display_rm67162: update method to transfer frame data 2025-06-27 08:49:44 -10:00
dma drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
dp
edac
eeprom drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
entropy drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
espi drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
ethernet drivers: ethernet: nxp_enet: Fix PHY configure for fixed-link config 2025-07-01 10:59:32 -10:00
firmware drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
flash
fpga
fuel_gauge drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
gnss drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
gpio drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
haptics
hdlc_rcp_if
hwinfo
hwspinlock
i2c i2c_shell: Only include target commands if I2C_TARGET 2025-06-27 18:26:33 -05:00
i2s drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
i3c drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
ieee802154
input drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
interrupt_controller
ipm
led
led_strip
lora
mbox
mdio
memc
mfd
mipi_dbi
mipi_dsi drivers: mipi_dsi: dsi_mcux_2l: support non-contiguous frame buffer 2025-06-27 08:49:44 -10:00
misc drivers: misc: stm32n6: ramcfg driver 2025-06-27 09:01:52 -10:00
mm
modem drivers: modem_cellular: fix eg25g dial cmd response 2025-06-30 15:16:48 -05:00
mspi drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
net drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
pcie
peci
pinctrl drivers/pinctrl: ite: Don't clear FUNC3 setting unless alt_func is FUNC3 2025-06-30 15:19:49 -05:00
pm_cpu_ops
power_domain
ps2
psi5 drivers: introduce support Peripheral Sensor Interface (PSI5) driver 2025-07-01 10:53:59 -10:00
ptp_clock
pwm drivers: pwm: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
regulator
reset
retained_mem
rtc
sdhc drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
sensor drivers: akm09918c: fix null dereference in submit function 2025-07-01 19:03:19 -05:00
sent
serial drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
sip_svc
smbus
spi drivers: spi_nxp_lpspi: Fix extra byte issue on v1 2025-07-01 11:00:43 -10:00
stepper
syscon
tee
timer drivers: timer: nrf_grtc_timer: add last_count initialization 2025-06-30 15:23:44 -05:00
usb drivers: kconfig: fix typo 2025-07-01 10:58:54 -10:00
usb_c
video drivers: video: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
virtio drivers: virtio: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
virtualization
w1
watchdog drivers: watchdog: Place device APIs in linker sections 2025-06-27 10:09:32 -05:00
wifi
xen
CMakeLists.txt drivers: introduce support Peripheral Sensor Interface (PSI5) driver 2025-07-01 10:53:59 -10:00
Kconfig drivers: introduce support Peripheral Sensor Interface (PSI5) driver 2025-07-01 10:53:59 -10:00