diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c index 1f0ec34b38da..3550d4fc721d 100644 --- a/sound/soc/msm/qdsp6v2/q6asm.c +++ b/sound/soc/msm/qdsp6v2/q6asm.c @@ -160,7 +160,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 { @@ -217,7 +217,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 {