kernel_samsung_a53x/sound/soc/stm
Luo Yifan 84ac475f2f ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div()
[ Upstream commit 23569c8b314925bdb70dd1a7b63cfe6100868315 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:23:58 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_adfsdm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_sai.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_sai.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_sai_sub.c ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div() 2024-12-17 13:23:58 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove 2024-11-30 02:33:23 +01:00