linux_dsm_epyc7002/sound/soc/intel
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
..
atom ASoC: Intel: Atom: add a missing star in a memcpy call 2016-09-01 20:59:10 +01:00
baytrail ASoC: Intel: add NULL test 2015-12-23 00:02:17 +00:00
boards ASoC: Intel: board: add kabylake nau88l25_ssm4567 machine id 2016-07-14 17:21:29 +01:00
common ASoC: intel: Fix sst-dsp dependency on dw stuff 2016-07-11 18:19:23 +01:00
haswell ASoC: Intel: Fix conflicting pcm dev drvdata on haswell 2016-07-14 17:30:03 +01:00
skylake ASoC: Intel: Skylake: Fix error return code in skl_probe() 2016-08-12 13:29:12 +01:00
Kconfig ASoC: intel: Fix sst-dsp dependency on dw stuff 2016-07-11 18:19:23 +01:00
Makefile ASoC: Intel: Add makefile support for SKL driver 2015-07-09 11:54:26 +01:00