Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45c4f7d2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: Modify buf size check to prevent OOB error"

parents 25405b77 63f89715
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {