From: Jarkko Nikula Date: Sun, 5 Sep 2010 16:10:22 +0000 (+0300) Subject: ASoC: tlv320aic3x: Fix null pointer dereference when pdata is not set X-Git-Tag: v2.6.37-rc1~126^2~1^2~128^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c776357e0adc2a25bd22eb75155030132c88a0dd;p=pandora-kernel.git ASoC: tlv320aic3x: Fix null pointer dereference when pdata is not set 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 for noticing. Signed-off-by: Jarkko Nikula Cc: Jiri Slaby Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed