]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix the memory overwrite of tlv buffer
authorVinod Koul <vinod.koul@intel.com>
Wed, 3 Feb 2016 12:29:44 +0000 (17:59 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 4 Feb 2016 11:36:14 +0000 (11:36 +0000)
commit0709ab4fe0c52b851aa50137409368c834d1cec4
tree4a9a5c0c3ba379e4c755b814ecfbb112d40ab2f9
parent0a31f5d2dc3e231a5fa74ff1d0c8c158e0eb3f1b
ASoC: Intel: Skylake: Fix the memory overwrite of tlv buffer

TLV buffer can be smaller than the module data, so update the
size of data to be copied before doing the copy.

Also TLV header consists of two unsigned ints, this is also taken
into account here and size modified to reflect this

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c