Re: [PATCH] ALSA: pcm: Propagate snd_pcm_stop() errors in snd_pcm_drop()
From: Takashi Iwai
Date: Wed Sep 16 2026 - 08:17:17 EST
On Wed, 16 Sep 2026 11:40:14 +0200,
phucduc.bui@xxxxxxxxx wrote:
>
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> snd_pcm_drop() currently ignores the return value of
> snd_pcm_stop() and returns a pre-initialized zero instead.
>
> Store the return value of snd_pcm_stop() in 'result' so that any
> error is propagated to the caller.
>
> Found by manual code inspection.
>
> Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
Applied to for-next branch. Thanks.
Takashi