[PATCH 1/2] ASoC: simple-card-utils: Propagate errors on too many links
Mark Brown
broonie at kernel.org
Fri Apr 16 17:55:15 CEST 2021
On Fri, Apr 16, 2021 at 03:49:34PM +0100, Jon Hunter wrote:
>
> On 16/04/2021 08:11, Thierry Reding wrote:
> > From: Thierry Reding <treding at nvidia.com>
> >
> > The DAI counting code doesn't propagate errors when the number of
> > maximum links is exceeded, which causes subsequent initialization code
> > to continue to run and that eventually leads to memory corruption with
> > the code trying to access memory that is out of bounds.
> >
> > Fix this by propgating errors when the maximum number of links is
>
> s/propgating/propagating
>
> > reached, which ensures that the driver fails to load and prevents the
> > memory corruption.
> >
> > Fixes: f2138aed231c ("ASoC: simple-card-utils: enable flexible CPU/Codec/Platform")
> > Signed-off-by: Thierry Reding <treding at nvidia.com>
Please delete unneeded context from mails when replying. Doing this
makes it much easier to find your reply in the message, helping ensure
it won't be missed by people scrolling through the irrelevant quoted
material.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210416/b1e3e3af/attachment.sig>
More information about the Alsa-devel
mailing list