ASoC: hdmi-codec: Fix mismatch channel status array

Fixes:
[smatch] sound/soc/codecs/hdmi-codec.c:504 hdmi_codec_hw_params()
error: memcpy() 'hcp->iec_status' too small (5 vs 24)

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I6dfa154c95159fa7563faf52a6fdbd87e0f398a9
This commit is contained in:
Sugar Zhang
2021-11-24 21:13:52 +08:00
committed by Tao Huang
parent 4142064c7f
commit 0e48a7ef3c

View File

@@ -277,7 +277,7 @@ struct hdmi_codec_priv {
bool busy;
struct snd_soc_jack *jack;
unsigned int jack_status;
u8 iec_status[5];
u8 iec_status[24];
};
static const struct snd_soc_dapm_widget hdmi_widgets[] = {