Re: [PATCH 01/10] ASoC: qcom: q6apm: fix array out of bounds on lpass ports
From: Mark Brown
Date: Thu Feb 05 2026 - 12:47:17 EST
On Thu, Feb 05, 2026 at 12:14:02PM -0500, Srinivas Kandagatla wrote:
> lpass ports numbers have been added but the apm driver never got updated
> with new max port value that it uses to store dai specific data.
>
> This will result in array out of bounds and weird driver behaviour.
> Fix this by adding a new LPASS_MAX_PORT which is can be used by driver
> instead of using number and any new port additional can only be done in
> one place, which should avoid these type of mistakes in future.
It would probably be good to improve the valdiation in the driver when
it starts using port numbers.
Attachment:
signature.asc
Description: PGP signature