Skip to content
Verified Commit 16719d48 authored by Qasim Ijaz's avatar Qasim Ijaz Committed by Mark Brown
Browse files

ASoC: codecs: fix out-of-bounds access on invalid clock config



get_coeff() returns –EINVAL when no table entry matches.
The driver then uses that value as an index into coeff_div[],
causing an OOB access.

To fix lets abort the hw_params call instead.

Fixes: de2b3119 ("ASoC: codecs: add support for ES8375")
Signed-off-by: default avatarQasim Ijaz <qasdev00@gmail.com>
Link: https://patch.msgid.link/20250526191820.72577-1-qasdev00@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f4ba2ea5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment