zephyr/drivers
François Baldassari e94af5b153 Litex: clock: Undefined behavior due to unchecked return code
Found via static analysis. Two separate error paths where failing to
check the return code leads to undefined behavior:
1. In `litex_clk_get_phase`, the divider stays set to 0 when
   `litex_clk_get_clkout_divider` errors out, which leads to a division
by 0.
2. In `litex_clk_calc_duty_normal`, the `duty` struct is used
   uninitialized if `litex_clk_get_duty_cycle` errors out.

In both case, checking the return code and returning early resolves the
issue.

Signed-off-by: François Baldassari <francois@memfault.com>
2024-06-10 15:00:33 +03:00
..
adc drivers: adc: adc_ad559x: fix 5593 adc read 2024-06-04 16:36:14 +02:00
audio
auxdisplay
bbram
bluetooth drivers: change Laird references to Ezurio 2024-06-05 17:37:54 -05:00
cache
can drivers: can: mcux: flexcan: calculate and set proper TDCO 2024-06-06 00:40:45 -07:00
charger
clock_control Litex: clock: Undefined behavior due to unchecked return code 2024-06-10 15:00:33 +03:00
console Revert "drivers/console/xtensa_sim_console: force `\r\n` byte sequence" 2024-06-06 20:06:26 -04:00
coredump
counter drivers: mcux_lptmr_timer: Fix compat string error 2024-06-05 04:24:30 -07:00
crypto
dac
dai drivers: dai/ssp: Support dynamic SSP management 2024-06-04 13:40:04 +02:00
disk drivers: disk: add DISK_IOCTL_CTRL_DEINIT command to supported IOCTLs 2024-06-07 18:16:01 +01:00
display drivers: display: ssd16xx: performance improvement 2024-06-04 19:13:18 -04:00
dma drivers: dma: smartbond: Add missing direction case 2024-06-10 14:58:38 +03:00
edac arch: define `struct arch_esf` and deprecate `z_arch_esf_t` 2024-06-04 14:02:51 -05:00
eeprom drivers: eeprom: atmel_at2x: improve Kconfig help descriptions 2024-06-04 13:40:14 +02:00
entropy
espi
ethernet drivers: ethernet: stm32 eth hal driver align PTP Config Status 2024-06-07 13:00:44 +02:00
flash drivers: flash: stm32: move memmap config 2024-06-10 14:58:52 +03:00
fpga
fuel_gauge
gnss
gpio drivers: gpio: pcal64xxa: give semaphore in case of error 2024-06-07 19:06:42 -04:00
hwinfo drivers: hwinfo: Prevent conflicts 2024-06-07 18:08:04 +01:00
hwspinlock
i2c drivers: i2c: Add MAX32690 I2C driver 2024-06-07 13:01:50 +02:00
i2s
i3c
ieee802154 drivers: ieee802154_nrf5: Use BLE.ADDR instead of FICR to create EUI64. 2024-06-10 15:00:01 +03:00
input drivers: input: sbus remote controller support 2024-06-06 15:56:38 -05:00
interrupt_controller
ipm
kscan
led
led_strip
lora
mbox
mdio
memc
mfd
mipi_dbi
mipi_dsi
misc
mm drivers: mm/intel_adsp: Add MMU support to MM driver 2024-06-04 13:40:04 +02:00
modem posix: deprecate POSIX_MAX_FDS and add POSIX_DEVICE_IO 2024-06-04 16:27:12 -05:00
net drivers: nsos: handle connect() blocking call 2024-06-06 15:20:15 -05:00
pcie
peci
pinctrl drivers: pinctrl: esp32: Use BIT macro when writing pin value 2024-06-06 07:52:55 -04:00
pm_cpu_ops
power_domain
ps2
ptp_clock
pwm drivers: pwm: pwm_mcux_qtmr: Add QTMR driver. 2024-06-06 09:41:22 +02:00
regulator
reset
retained_mem
rtc drivers: rtc: rtc_shell: Add devices as sub commands 2024-06-07 21:42:54 +02:00
sdhc
sensor posix: deprecate POSIX_FNMATCH GETOPT GETENTROPY 2024-06-04 16:27:12 -05:00
serial drivers: serial: Add gpio management to low power mode 2024-06-07 19:07:56 -04:00
sip_svc
smbus
spi sys: Add a lockfree mpsc and spsc queues 2024-06-06 00:42:29 -07:00
syscon
timer drivers: timer: Optimized the ambiq stimer driver 2024-06-06 07:52:32 -04:00
usb drivers: udc_dwc2: Abort wait when PHY is not clocked 2024-06-06 07:53:17 -04:00
usb_c
video drivers: video: ov7670: introduce driver for ov7670 camera 2024-06-06 20:07:57 -04:00
virtualization
w1
watchdog
wifi drivers: change Laird references to Ezurio 2024-06-05 17:37:54 -05:00
xen
CMakeLists.txt
Kconfig