Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: stm: Prevent potential division by zero in stm32_sai_mclk_round…
…_rate() 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 (*prate / div) is safe to perform. Signed-off-by: Luo Yifan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
- Loading branch information