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)
commit5661ad9490ee4abdb27295880e524acc656c89e7
tree10d9e0ed31b7c5135b55af8ce7f623f3500face0
parentfab4edf42d2d68d0aa67822650174dcd0ee25ffa
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: c3078f53970 ("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