]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu: Check for iommu_ops == NULL in iommu_probe_device()
authorJoerg Roedel <jroedel@suse.de>
Thu, 20 Dec 2018 09:02:20 +0000 (10:02 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 20 Dec 2018 09:02:20 +0000 (10:02 +0100)
commitdc9de8a2b20f495696330d60a289935f36407995
tree8a4f3981c0cf7b3b8d60651bdc973faffef566df
parentd2e1a003af569e912d5f115a3c20b89a19f5caa0
iommu: Check for iommu_ops == NULL in iommu_probe_device()

This check needs to be there and got lost at some point
during development. Add it again.

Fixes: 641fb0efbff0 ('iommu/of: Don't call iommu_ops->add_device directly')
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c