From: Bard Liao Date: Tue, 9 Dec 2014 02:14:45 +0000 (+0800) Subject: ASoC: rt5645: Fix potential crash in jd function X-Git-Tag: omap-for-v3.19/fixes-rc1~18^2~10^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75945896a2f4a7ebfc3402443f99ac32f629ee96;p=pandora-kernel.git ASoC: rt5645: Fix potential crash in jd function If no one defined the rt5645->pdata.hp_det_gpio in coreboot/bios. It will cause kernel to reboot because rt5645->pdata.hp_det_gpio is 0. So it is worth to add a check in rt5645_jack_detect. Signed-off-by: Bard Liao Signed-off-by: Fang, Yang A Signed-off-by: Mark Brown --- Reading git-diff-tree failed