summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-05-24 02:46:46 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-05-24 02:46:45 -0700
commit45c4f7d22f23b789e9d38eb460af493984af4d9d (patch)
tree9a05a437ce7e9e599d56a23e9420ec3e0c55d654
parent25405b771e72cd1508df3d3e809dce8ee9a63615 (diff)
parent63f89715433a381a9c95cfb752a45c6852538216 (diff)
Merge "ASoC: msm: Modify buf size check to prevent OOB error"
-rw-r--r--sound/soc/msm/qdsp6v2/q6asm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c
index e9592cf1eb5a..567534e1599d 100644
--- a/sound/soc/msm/qdsp6v2/q6asm.c
+++ b/sound/soc/msm/qdsp6v2/q6asm.c
@@ -339,7 +339,7 @@ static ssize_t audio_output_latency_dbgfs_write(struct file *file,
{
char *temp;
- if (count > 2*sizeof(char)) {
+ if (count != 2*sizeof(char)) {
pr_err("%s: err count is more %zd\n", __func__, count);
return -EINVAL;
} else {
@@ -396,7 +396,7 @@ static ssize_t audio_input_latency_dbgfs_write(struct file *file,
{
char *temp;
- if (count > 2*sizeof(char)) {
+ if (count != 2*sizeof(char)) {
pr_err("%s: err count is more %zd\n", __func__, count);
return -EINVAL;
} else {