From: Charles Keepax Date: Tue, 9 Sep 2014 15:51:49 +0000 (+0100) Subject: ASoC: samsung-i2s: Check secondary DAI exists before referencing X-Git-Tag: fixes-for-v3.18-merge-window~108^2^2^5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133c2681c4a0c1b589d138c2fdd0f131bdce20ed;p=pandora-kernel.git ASoC: samsung-i2s: Check secondary DAI exists before referencing In a couple of places the driver is missing a check to ensure there is a secondary DAI before it de-references the pointer to it, causing a null pointer de-reference. This patch adds a check to avoid this. Signed-off-by: Charles Keepax Acked-by: Sylwester Nawrocki Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- Reading git-diff-tree failed