Re: [PATCH 05/10] ASoC: Intel: avs: Clean up streams if their initialization fails
Mark Brown <[email protected]>
| Newsgroups | gmane.linux.sound |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 27, 2026 at 03:15:05PM +0200, Cezary Rojewski wrote: > When streams are being initialized the memory allocation may fail. > Have an error path and return early if that is the case. > +err: > + snd_hdac_ext_stream_free_all(bus); > + return ret; I think this needs a snd_hdac_bus_free_stream_pages(), or possibly that should be pulled inside the cleanup.
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmqQSvYACgkQJNaLcl1U h9Bj4Qf/QH37A3PvVbGkYcwtyfozPxPBqcjMGPZIzkmqXKio+chUjk9fFoXMxj2A v1lkyYMcHpE+duaCaD5/FFFVPA2x5cDgAolRD+b/AHu7fQzAK43oCZLahEwGEXva gqgETPygPwC6XTp4x5AC09YtHBVZ/SlG6C1uAMgMxqxJfuzFGj3IqHcIJnDNymHP 7xAwp37o7t4B1CcH664zE9sr8LXUNfiykzwPZdgnPeRywUtMQzXJq/4xdnOl6RRJ odtp05rrzB9JKihsKQ6UwoU4nb7DFMWkCYFGfnFg5EzJ1Ybj/8T+a8Xl13IAHE8b rAn6HUTL/itewgW/kA2CgfPr1FZFfA== =S16j -----END PGP SIGNATURE-----