Re: [PATCH] audio: fix wavcapture segfault

2020-05-25 Thread Gerd Hoffmann
On Thu, May 21, 2020 at 11:29:31AM -0600, Bruce Rogers wrote: > Commit 571a8c522e caused the HMP wavcapture command to segfault when > processing audio data in audio_pcm_sw_write(), where a NULL > sw->hw->pcm_ops is dereferenced. This fix checks that the pointer is > valid before dereferincing it.

Re: [PATCH] audio: fix wavcapture segfault

2020-05-21 Thread Philippe Mathieu-Daudé
On 5/21/20 7:29 PM, Bruce Rogers wrote: Commit 571a8c522e caused the HMP wavcapture command to segfault when processing audio data in audio_pcm_sw_write(), where a NULL sw->hw->pcm_ops is dereferenced. This fix checks that the pointer is valid before dereferincing it. A similar fix is also made i

[PATCH] audio: fix wavcapture segfault

2020-05-21 Thread Bruce Rogers
Commit 571a8c522e caused the HMP wavcapture command to segfault when processing audio data in audio_pcm_sw_write(), where a NULL sw->hw->pcm_ops is dereferenced. This fix checks that the pointer is valid before dereferincing it. A similar fix is also made in the parallel function audio_pcm_sw_read(