]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.7.7/asoc-intel-skylake-fix-error-return-code-in-skl_probe.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.7.7 / asoc-intel-skylake-fix-error-return-code-in-skl_probe.patch
CommitLineData
83f48a73
GKH
1From 979cf59acc9d634cc140aadd0d2915947ab303cc Mon Sep 17 00:00:00 2001
2From: Wei Yongjun <weiyj.lk@gmail.com>
3Date: Fri, 12 Aug 2016 11:45:18 +0000
4Subject: ASoC: Intel: Skylake: Fix error return code in skl_probe()
5
6From: Wei Yongjun <weiyj.lk@gmail.com>
7
8commit 979cf59acc9d634cc140aadd0d2915947ab303cc upstream.
9
10Fix to return error code -ENODEV from the error handling
11case instead of 0, as done elsewhere in this function.
12
13Fixes: 87b2bdf02278 ("ASoC: Intel: Skylake: Initialize NHLT table")
14Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
15Acked-By: Vinod Koul <vinod.kou@intel.com>
16Signed-off-by: Mark Brown <broonie@kernel.org>
17Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19---
20 sound/soc/intel/skylake/skl.c | 4 +++-
21 1 file changed, 3 insertions(+), 1 deletion(-)
22
23--- a/sound/soc/intel/skylake/skl.c
24+++ b/sound/soc/intel/skylake/skl.c
25@@ -659,8 +659,10 @@ static int skl_probe(struct pci_dev *pci
26
27 skl->nhlt = skl_nhlt_init(bus->dev);
28
29- if (skl->nhlt == NULL)
30+ if (skl->nhlt == NULL) {
31+ err = -ENODEV;
32 goto out_free;
33+ }
34
35 skl_nhlt_update_topology_bin(skl);
36