[alsa-devel] [PATCH] ASoC: Amstrad Delta: fix NULL pointer dereference
jkrzyszt at tis.icnet.pl
Wed Feb 2 11:02:20 CET 2011
Dnia wtorek 01 luty 2011 o 22:33:01 Mark Brown napisał(a):
> 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