aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2023-07-01 11:47:23 +0200
committerMark Brown <[email protected]>2023-07-03 13:04:50 +0100
commit6f49256897083848ce9a59651f6b53fc80462397 (patch)
tree304ebd2d14a97cf137fda7ebe78c2b4ac1af2b54 /lib/test_fortify/write_overflow-strlcpy-src.c
parent055509cdfd018cc6cd793593df916f1cf4f83d84 (diff)
ASoC: codecs: wcd938x: fix soundwire initialisation race
Make sure that the soundwire device used for register accesses has been enumerated and initialised before trying to read the codec variant during component probe. This specifically avoids interpreting (a masked and shifted) -EBUSY errno as the variant: wcd938x_codec audio-codec: ASoC: error at soc_component_read_no_lock on audio-codec for register: [0x000034b0] -16 in case the soundwire device has not yet been initialised, which in turn prevents some headphone controls from being registered. Fixes: 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver") Cc: [email protected] # 5.14 Cc: Srinivas Kandagatla <[email protected]> Reported-by: Steev Klimaszewski <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Tested-by: Steev Klimaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions