From: Dan Carpenter Date: Mon, 7 Feb 2011 19:01:41 +0000 (+0300) Subject: ASoC: soc-cache: dereferencing before checking X-Git-Tag: v2.6.39-rc1~200^2^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46fdaa3bec1bcaa36759b1f5e5e27245ae465b8f;p=pandora-kernel.git ASoC: soc-cache: dereferencing before checking The patch c358e640a66 "ASoC: soc-cache: Add trace event for snd_soc_cache_sync()" introduced a dereference of "codec->cache_ops" before we had checked it for NULL. I pulled the check forward, and then pulled everything in an indent level. Signed-off-by: Dan Carpenter Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed