From: Olav Haugan Date: Sat, 23 Aug 2014 00:12:32 +0000 (-0700) Subject: iommu/arm-smmu: Do not access non-existing S2CR registers X-Git-Tag: fixes-for-v3.18-merge-window~141^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c8766d0ca9618a406b0a1ecc29147820e93d984;p=pandora-kernel.git iommu/arm-smmu: Do not access non-existing S2CR registers The number of S2CR registers is not properly set when stream matching is not supported. Fix this and add check that we do not try to access outside of the number of S2CR regisrers. Signed-off-by: Olav Haugan [will: added missing NUMSIDB_* definitions] Signed-off-by: Will Deacon --- Reading git-diff-tree failed