[alsa-devel] [patch] move dereference after null check

Takashi Iwai tiwai at suse.de
Mon Nov 16 17:15:37 CET 2009


At Mon, 16 Nov 2009 16:11:24 +0000,
Mark Brown wrote:
> 
> On Mon, Nov 16, 2009 at 11:06:33AM +0200, Dan Carpenter wrote:
> > The 'jack' variable was dereference before the NULL check so this patch 
> > moves the dereference later.
> > 
> > regards,
> > dan carpenter
> > 
> > Signed-off-by: Dan Carpenter <error27 at gmail.com>
> 
> This does not apply to the current ASoC code, it appears that someone
> else has already provided an equivalent change.  When doing work like
> this it's normally best to work against -next to help avoid duplication
> such as this.

Yep.  FYI, it's the commit below:

  commit 4f066173fe8deb8874f41917e5d26ea2e0c46e3b
  Author: Julia Lawall <julia at diku.dk>
  Date:   Sat Oct 17 08:32:56 2009 +0200
    ASoC: Move dereference after NULL test


thanks,

Takashi


More information about the Alsa-devel mailing list