diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2016-08-29 00:49:27 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-08-29 00:49:27 -0700 |
commit | 1de43aecd240014b1188f9eedfaa21bd281f144c (patch) | |
tree | e3dae033ea1e83a9d8b8fa1c256a59753117c415 /sound/usb | |
parent | 627ff531cb194664703932732bf639134bddaf8f (diff) | |
parent | 0e23404929077d6942aa5d2d6c2518157fc573e1 (diff) |
Merge "sound: usb: Add NULL check on return value of iommu_domain_alloc()"
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/usb_audio_qmi_svc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/usb_audio_qmi_svc.c b/sound/usb/usb_audio_qmi_svc.c index 94c051773fd9..fa0206cc14c6 100644 --- a/sound/usb/usb_audio_qmi_svc.c +++ b/sound/usb/usb_audio_qmi_svc.c @@ -1007,8 +1007,8 @@ static int uaudio_qmi_plat_probe(struct platform_device *pdev) } uaudio_qdev->domain = iommu_domain_alloc(msm_iommu_get_bus(&pdev->dev)); - if (!uaudio_qdev) { - dev_err(&pdev->dev, "failed to callocate iommu domin\n"); + if (!uaudio_qdev->domain) { + dev_err(&pdev->dev, "failed to callocate iommu domain\n"); return -ENODEV; } |