[alsa-devel] [PATCH] ASoC: tlv320aic3x: Fix null pointer dereference when pdata is not set
lrg at slimlogic.co.uk
Mon Sep 6 12:39:01 CEST 2010
On Mon, 2010-09-06 at 10:45 +0100, Mark Brown wrote:
> On Sun, Sep 05, 2010 at 07:10:22PM +0300, Jarkko Nikula wrote:
> > Null pointer dereference will occur from *setup = pdata->setup if pdata
> > is not set. Fix this by moving assignments from pdata inside non-null case.
> > Thanks to Jiri Slaby <jirislaby at gmail.com> for noticing.
> > Signed-off-by: Jarkko Nikula <jhnikula at gmail.com>
> > Cc: Jiri Slaby <jirislaby at gmail.com>
> Acked-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
More information about the Alsa-devel