From: Bard Liao Date: Thu, 5 Feb 2015 08:40:33 +0000 (+0800) Subject: ASoC: rt286: Fix potencial crash in jd function X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~130^2~13^2~16^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d1ad09c50c758d3e295fa7ff90a4712e1254ea;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed