linux/sound/soc/intel/atom
Nicolas Iooss 61ab0d403b ASoC: Intel: Atom: add a missing star in a memcpy call
In sst_prepare_and_post_msg(), when a response is received in "block",
the following code gets executed:

    *data = kzalloc(block->size, GFP_KERNEL);
    memcpy(data, (void *) block->data, block->size);

The memcpy() call overwrites the content of the *data pointer instead of
filling the newly-allocated memory (which pointer is hold by *data).
Fix this by merging kzalloc+memcpy into a single kmemdup() call.

Thanks Joe Perches for suggesting using kmemdup()

Fixes: 60dc8dbacb ("ASoC: Intel: sst: Add some helper functions")
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
2016-09-01 20:59:10 +01:00
..
sst ASoC: Intel: Atom: add a missing star in a memcpy call 2016-09-01 20:59:10 +01:00
Makefile ASoC: Intel: create atom folder and move atom platform files in 2015-04-06 17:49:45 +01:00
sst-atom-controls.c ASoC: Intel: Atom: fix boot warning 2016-04-22 10:39:15 +01:00
sst-atom-controls.h ASoc: Intel: Atom: add deep buffer definitions for atom platforms 2015-12-19 11:49:56 +00:00
sst-mfld-dsp.h ASoC: Intel: create atom folder and move atom platform files in 2015-04-06 17:49:45 +01:00
sst-mfld-platform-compress.c ASoC: Intel: atom: fix missing breaks that would cause the wrong operation to execute 2016-06-24 12:33:17 +01:00
sst-mfld-platform-pcm.c ASoC: Intel: Atom: fix regression on compress DAI 2016-02-02 19:33:22 +00:00
sst-mfld-platform.h ASoC: intel - atom: fix sst_platform_compr_ops declaration 2015-07-08 19:24:05 +01:00