diff options
| author | Peter Ujfalusi <[email protected]> | 2025-02-05 13:52:32 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-02-05 14:06:27 +0000 |
| commit | 46c7b901e2a03536df5a3cb40b3b26e2be505df6 (patch) | |
| tree | 996c9c0f482a6613ff4ed968dd2a9594c182943c /net/unix/af_unix.c | |
| parent | ASoC: SOF: stream-ipc: Check for cstream nullity in sof_ipc_msg_data() (diff) | |
| download | kernel-46c7b901e2a03536df5a3cb40b3b26e2be505df6.tar.gz kernel-46c7b901e2a03536df5a3cb40b3b26e2be505df6.zip | |
ASoC: SOF: pcm: Clear the susbstream pointer to NULL on close
The spcm->stream[substream->stream].substream is set during open and was
left untouched. After the first PCM stream it will never be NULL and we
have code which checks for substream NULLity as indication if the stream is
active or not.
For the compressed cstream pointer the same has been done, this change will
correct the handling of PCM streams.
Fixes: 090349a9feba ("ASoC: SOF: Add support for compress API for stream data/offset")
Cc: [email protected]
Reported-by: Curtis Malainey <[email protected]>
Closes: https://github.com/thesofproject/linux/pull/5214
Signed-off-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Bard Liao <[email protected]>
Reviewed-by: Curtis Malainey <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
