Re: [PATCH][ASoC V2] Fix null-pointer dereference in soc_create_pcm()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Wed, 21 May 2008 11:54:26 +0100,
Mark Brown wrote:
> 
> On Wed, May 21, 2008 at 12:36:40PM +0200, Takashi Iwai wrote:
> > Mark Brown wrote:
> 
> > > > When soc_create_pcm() finds all four components it needs, it displays a status
> > > > message.  This message references the local variables 'codec_dai' and
> 
> > This looks applicable to the upstream tree... Shouldn't it be fixed as
> > well?
> 
> The error condition can't occur in ASoC v1 - it doesn't support the
> dynamic registration of machine components so the local codec and CPU
> DAI variables must always have been initialised if soc_new_pcm()
> succeeds.  It's an issue for v2 because soc_create_pcm() can be called
> multiple times if the PCM is registered before all the components
> required to create it are registered - if that happens then only the
> last component to be added will have had the local variables
> initialised.

Fair enough.  Thanks for clarification.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux