summaryrefslogtreecommitdiff
path: root/sound/hda/core/intel-dsp-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/hda/core/intel-dsp-config.c')
-rw-r--r--sound/hda/core/intel-dsp-config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/hda/core/intel-dsp-config.c b/sound/hda/core/intel-dsp-config.c
index c15284742899..2a9e35cddcf7 100644
--- a/sound/hda/core/intel-dsp-config.c
+++ b/sound/hda/core/intel-dsp-config.c
@@ -650,6 +650,8 @@ static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
int ret;
handle = ACPI_HANDLE(&pci->dev);
+ if (!handle)
+ return -ENODEV;
ret = sdw_intel_acpi_scan(handle, &info);
if (ret < 0)