diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-01-20 12:59:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-03 23:26:01 +0100 |
commit | 489e35c6829a56ae0e863a5ab6a4a34c7edc024f (patch) | |
tree | 21d9ecfc25721cc6d3d7865ec670a183b79bf4bd /net/switchdev/switchdev.c | |
parent | 9a4d367b27839c2eaf7841a3fef536ed156b9b2a (diff) |
ASoC: topology: Fix memory corruption in soc_tplg_denum_create_values()
commit 543466ef3571069b8eb13a8ff7c7cfc8d8a75c43 upstream.
The allocation uses sizeof(u32) when it should use sizeof(unsigned long)
so it leads to memory corruption later in the function when the data is
initialized.
Fixes: 5aebe7c7f9c2 ("ASoC: topology: fix endianness issues")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YAf+8QZoOv+ct526@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions