linux/sound/soc/stm
Luo Yifan 23569c8b31
ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div()
This patch checks if div is less than or equal to zero (div <= 0). If
div is zero or negative, the function returns -EINVAL, ensuring the
division operation is safe to perform.

Signed-off-by: Luo Yifan <luoyifan@cmss.chinamobile.com>
Reviewed-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://patch.msgid.link/20241107015936.211902-1-luoyifan@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-11-07 13:07:17 +00:00
..
Kconfig ASoC: stm: depend on COMMON_CLK to fix compile tests 2020-11-23 20:39:48 +00:00
Makefile ASoC: stm: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:34 +09:00
stm32_adfsdm.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
stm32_i2s.c ASoC: Switch back to struct platform_driver::remove() 2024-09-09 18:26:49 +01:00
stm32_sai_sub.c ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div() 2024-11-07 13:07:17 +00:00
stm32_sai.c ASoC: Use device_get_match_data() 2023-10-09 13:13:59 +01:00
stm32_sai.h Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove 2024-11-05 16:26:03 +00:00