[alsa-devel] [PATCH] ASoC: soc-core: fix crash when removing not instantiated card

Mark Brown broonie at opensource.wolfsonmicro.com
Mon May 11 20:04:07 CEST 2009


On Mon, May 11, 2009 at 01:04:55PM +0300, Mike Rapoport wrote:
> If the card was not instantiated in snd_soc_instantiate_card, calling
> soc-remove will crash because some of codec, cpu_dai and card .remove
> methods are called twice.
> Fix this by returning from soc_remove immediately.
> 
> Signed-off-by: Mike Rapoport <mike at compulab.co.il>

Applied, thanks.


More information about the Alsa-devel mailing list