Re: [PATCH] ASoC: SOF: Don't allow pointer operations on unconfigured streams
From: Mark Brown
Date: Mon Mar 30 2026 - 16:12:06 EST
On Mon, Mar 30, 2026 at 02:50:15PM +0300, Péter Ujfalusi wrote:
> On 30/03/2026 14:05, Mark Brown wrote:
> > We don't generally guard calls based on the state the stream is in,
> compress does this quite much, just avail and tstamp is exempt for some
> reason.
Actually already we have a guard preventing userspace from doing an
avail() when we're unconfigured but we do it after we've called down
into the driver which is less than ideal. I think that's because we
also check for XRUN and the availability check might cause us to notice
that we're in a bad state for that.
Attachment:
signature.asc
Description: PGP signature