iommu/arm-smmu: Check that iommu_fwspecs are ours
authorRobin Murphy <robin.murphy@arm.com>
Wed, 2 Nov 2016 17:31:32 +0000 (17:31 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 8 Nov 2016 13:46:41 +0000 (14:46 +0100)
commit3c117b543528b0d25801bd75444037dd0fcd2b8d
tree301a1ee2e46951464c3ac173f45890ccd7787933
parentec615f43d3b61edcfdc4d8d1f672be1059573d1b
iommu/arm-smmu: Check that iommu_fwspecs are ours

We seem to have forgotten to check that iommu_fwspecs actually belong to
us before we go ahead and dereference their private data. Oops.

Fixes: 021bb8420d44 ("iommu/arm-smmu: Wire up generic configuration support")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu.c