commit | 28d1ad09c50c758d3e295fa7ff90a4712e1254ea | [log] [tgz] |
---|---|---|
author | Bard Liao <bardliao@realtek.com> | Thu Feb 05 16:40:33 2015 +0800 |
committer | Mark Brown <broonie@kernel.org> | Thu Feb 05 18:17:12 2015 +0000 |
tree | 5d107d6d0f9d6a8e94f6193660ef35b9f7b8fc94 | |
parent | 54d96a40e0dfb5aa2eea0b010ddc1c7e8742e364 [diff] |
ASoC: rt286: Fix potencial crash in jd function We assign rt286->codec in rt286_probe. If rt286_jack_detect is invoked before rt286_probe, rt286->codec will be NULL and cause a kernel panic. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>