[alsa-devel] [PATCH] ASoC: Intel: mfld-pcm: Fix to use correct sst_data pointer

Subhransu S. Prusty subhransu.s.prusty at intel.com
Wed Jul 30 15:06:00 CEST 2014


Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty at intel.com>
Signed-off-by: Vinod Koul <vinod.koul at intel.com>
---
 sound/soc/intel/sst-mfld-platform-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/sst-mfld-platform-pcm.c b/sound/soc/intel/sst-mfld-platform-pcm.c
index d48d23bbf5cd..dbff2965a6e3 100644
--- a/sound/soc/intel/sst-mfld-platform-pcm.c
+++ b/sound/soc/intel/sst-mfld-platform-pcm.c
@@ -697,7 +697,7 @@ static int sst_platform_probe(struct platform_device *pdev)
 	struct sst_platform_data *pdata = pdev->dev.platform_data;
 
 	drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL);
-	if (sst == NULL) {
+	if (drv == NULL) {
 		pr_err("kzalloc failed\n");
 		return -ENOMEM;
 	}
-- 
1.9.0



More information about the Alsa-devel mailing list