From: Philipp Zabel
Date: Wed, 25 Sep 2013 13:22:01 +0000 (+0200)
Subject: ASoC: imx-sgtl5000: Fix uninitialized pointer use in error path
X-Git-Tag: v3.12-rc4~28^2~2^2~1^2
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50d4a790e65f5ac91a7b2720a19e80e862b40318;p=pandora-kernel.git
ASoC: imx-sgtl5000: Fix uninitialized pointer use in error path
This patch avoids to dereference the uninitialized data pointer if the
error path is entered before devm_kzalloc is called (or if the allocation
fails). It fixes the following warning:
sound/soc/fsl/imx-sgtl5000.c: In function 'imx_sgtl5000_probe':
sound/soc/fsl/imx-sgtl5000.c:175:18: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Philipp Zabel
Signed-off-by: Mark Brown
---
Reading git-diff-tree failed