summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl-topology.c
diff options
context:
space:
mode:
authorAlan2016-02-19 07:12:32 +0100
committerMark Brown2016-02-19 16:32:32 +0100
commit65b4bcb82967fd5a60694c3477e58a04a9170aea (patch)
tree85fc6bd3f1bb21003bb5ad055e20ff5dce9bd4d4 /sound/soc/intel/skylake/skl-topology.c
parentLinux 4.5-rc1 (diff)
downloadkernel-qcow2-linux-65b4bcb82967fd5a60694c3477e58a04a9170aea.tar.gz
kernel-qcow2-linux-65b4bcb82967fd5a60694c3477e58a04a9170aea.tar.xz
kernel-qcow2-linux-65b4bcb82967fd5a60694c3477e58a04a9170aea.zip
ASoC: Intel: Skylake: fix pointer scaling
skl_tplg_tlv_control_set does pointer maths on data but forgets that data is not uint8_t so the maths is already scaled in the pointer type. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-topology.c')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index 4624556f486d..b77c253394d7 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -950,7 +950,7 @@ static int skl_tplg_tlv_control_set(struct snd_kcontrol *kcontrol,
return -EFAULT;
} else {
if (copy_from_user(ac->params,
- data + 2 * sizeof(u32), size))
+ data + 2, size))
return -EFAULT;
}