projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e963f
)
ASoC: Intel: Skylake: fix pointer scaling
author
Alan
<gnomes@lxorguk.ukuu.org.uk>
Fri, 19 Feb 2016 06:12:32 +0000
(11:42 +0530)
committer
Mark Brown
<broonie@kernel.org>
Fri, 19 Feb 2016 15:32:32 +0000
(
00:32
+0900)
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>
sound/soc/intel/skylake/skl-topology.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/intel/skylake/skl-topology.c
b/sound/soc/intel/skylake/skl-topology.c
index 4624556f486de34c396a327a0d279a57a1fdbf96..b77c253394d77c44953ef727ac005398c3903ee7 100644
(file)
--- 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;
}