]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt286: Fix potencial crash in jd function
authorBard Liao <bardliao@realtek.com>
Thu, 5 Feb 2015 08:40:33 +0000 (16:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 5 Feb 2015 18:17:12 +0000 (18:17 +0000)
commit63b8220cf5e6e10a39bf6d4b97043a348c3e431b
tree5d107d6d0f9d6a8e94f6193660ef35b9f7b8fc94
parent00ad47e670a7f2e8f50730ed10887078992f2382
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>
sound/soc/codecs/rt286.c