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

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

Merge "ASoC: qdsp6v2: fix potential bug of infinite loop"

parents 7950724d 01c58165
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1179,8 +1179,9 @@ int q6asm_audio_client_buf_alloc(unsigned int dir,
	struct audio_buffer *buf;
	size_t len;

	if (!(ac) || ((dir != IN) && (dir != OUT))) {
		pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
	if (!(ac) || !(bufsz) || ((dir != IN) && (dir != OUT))) {
		pr_err("%s: ac %pK bufsz %d dir %d\n", __func__, ac, bufsz,
			dir);
		return -EINVAL;
	}