From: Will Deacon Date: Fri, 4 Jul 2014 10:06:01 +0000 (+0100) Subject: iommu/arm-smmu: fix capability checking prior to device attach X-Git-Tag: omap-for-v3.17/fixes-against-rc2~158^2^5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3bca16635ae7443139c4408def7c1a50755083f;p=pandora-kernel.git iommu/arm-smmu: fix capability checking prior to device attach If somebody attempts to check the capability of an IOMMU domain prior to device attach, then we'll try to dereference a NULL SMMU pointer through the SMMU domain (since we can't determine the actual SMMU instance until we have a device attached). This patch fixes the capability check so that non-global features are reported as being absent when no device is attached to the domain. Signed-off-by: Will Deacon --- Reading git-diff-tree failed