[alsa-devel] [PATCH] Max98095: Move existing NULL check before pointer dereference.

Peter Hsiang Peter.Hsiang at maxim-ic.com
Wed May 18 03:28:04 CEST 2011


On Tue, May 17, 2011, Taylor Hutt wrote:

> Visual inspection shows that max98095_put_eq_enum() and
> max98095_put_bq_enum() each have a possible NULL deref of 'pdata'.
> 
> This change moves the NULL check above the use.
> 
> BUG=none
> TEST=Visual inspection

Mark, this patch looks good.
Thank you Taylor.



More information about the Alsa-devel mailing list