[alsa-devel] [PATCH] ASoC: Amstrad Delta: fix NULL pointer dereference

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Feb 1 22:33:01 CET 2011

On Tue, Feb 01, 2011 at 06:40:55PM +0100, Janusz Krzysztofik wrote:

> It looks like the .card member of the snd_soc_pcm_runtime structure 
> pointed to by the snd_soc_dai_link.init() argument is no longer 
> initialized before the function being called. As the Amstrad Delta sound 
> card driver was making use of it for locating its snd_soc_card 
> structure, this resulted in actual or potential NULL pointer 
> dereferences.

Seems like it'd be better to fix this in the core - this is a reasonable
thing to want to have set up and the use ams-delta makes of it seems
perfectly sensible.  Care to do a patch?

More information about the Alsa-devel mailing list