diff options
| author | Luo Yifan <[email protected]> | 2024-11-06 01:46:54 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-11-07 13:07:16 +0000 |
| commit | 63c1c87993e0e5bb11bced3d8224446a2bc62338 (patch) | |
| tree | 74e08cd27f9cd7f83472e208ec3af3fd29dfefdd /drivers/usb/cdns3/cdns3-ti.c | |
| parent | ASoC: amd: yc: Support dmic on another model of Lenovo Thinkpad E14 Gen 6 (diff) | |
| download | kernel-63c1c87993e0e5bb11bced3d8224446a2bc62338.tar.gz kernel-63c1c87993e0e5bb11bced3d8224446a2bc62338.zip | |
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]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions
