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

Liam Girdwood lrg at ti.com
Wed May 18 11:32:39 CEST 2011


On 18/05/11 02:28, Peter Hsiang wrote:
> 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.
> 

Acked-by: Liam Girdwood <lrg at ti.com>


More information about the Alsa-devel mailing list