]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: control: correct the copy size for bytes kcontrol put
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 24 May 2019 19:09:22 +0000 (14:09 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 28 May 2019 14:48:27 +0000 (15:48 +0100)
commitc3d680e31d63b5b7db741f269feb4d7f1518f67f
tree10d9e0ed31b7c5135b55af8ce7f623f3500face0
parente7b976d18bbc4544e86c881b04ee2847c6830e8d
ASoC: SOF: control: correct the copy size for bytes kcontrol put

The size for the bytes kcontrol should include the abi header, that is,
data->size + sizeof(*data), it is also aligned with get method after
this change.

Fixes: 3b7e75ea033 ("ASoC: SOF: Add Sound Open Firmware KControl support")
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/control.c