commit | c776357e0adc2a25bd22eb75155030132c88a0dd | [log] [tgz] |
---|---|---|
author | Jarkko Nikula <jhnikula@gmail.com> | Sun Sep 05 19:10:22 2010 +0300 |
committer | Liam Girdwood <lrg@slimlogic.co.uk> | Mon Sep 06 11:36:22 2010 +0100 |
tree | 917edb0d57554a9a1a68ab471c41cdbede3617af | |
parent | 098b1718230466b48f2027eb26cdc921760ae5da [diff] |
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 <jirislaby@gmail.com> for noticing. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Cc: Jiri Slaby <jirislaby@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>