diff options
author | Arnd Bergmann <[email protected]> | 2020-12-03 23:54:41 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-12-04 23:26:33 +0000 |
commit | 7061b8a52296e044eed47b605d136a48da1a7761 (patch) | |
tree | cea725aa981ee20721ddae01c1c288f1a8d40e23 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 518a760cc369eafeef0d6c76d8c30a8acab2c921 (diff) |
ASoC: cros_ec_codec: fix uninitialized memory read
gcc points out a memory area that is copied to a device
but not initialized:
sound/soc/codecs/cros_ec_codec.c: In function 'i2s_rx_event':
arch/x86/include/asm/string_32.h:83:20: error: '*((void *)&p+4)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
83 | *((int *)to + 1) = *((int *)from + 1);
Initialize all the unused fields to zero.
Fixes: 727f1c71c780 ("ASoC: cros_ec_codec: refactor I2S RX")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions