From: Daniel Mack Date: Wed, 3 Jun 2009 15:44:49 +0000 (+0200) Subject: ASoC: fix NULL pointer dereference in soc_suspend() X-Git-Tag: v2.6.31-rc1~363^2~29^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3509ff0fb9df53e45cd68488e3b463a80455db7;p=pandora-kernel.git ASoC: fix NULL pointer dereference in soc_suspend() In case the initalization of an soc_device failed, there is no codec associated with it. soc_suspend() will still dereference the pointer and cause an Ooops when entering the sleep mode. This happens on our board with a multi-target kernel image when booted on a machine without audio circuits. This patch makes the code bail out very early in this special case. Signed-off-by: Daniel Mack Signed-off-by: Mark Brown --- Reading git-diff-tree failed