Commit 6d3a1357 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla
Browse files

ASoC: codecs: wcd938x: fix incorrect used of portid



Mixer controls have the channel id in reg, which is not same as port id.
port id can be derived from chan_info array.
So fix this, with out this, Its possible that we can corrupt
struct wcd938x_sdw_priv if we access array out of bounds.

Fixes: e8ba1e05 ("ASoC: codecs: wcd938x: add basic controls")
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
parent d0f2b863
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment