From: Suman Anna Date: Thu, 4 Sep 2014 22:27:29 +0000 (-0500) Subject: iommu/omap: Check for valid archdata in attach_dev X-Git-Tag: fixes-against-v3.18-rc2~67^2^3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f595b9039c888016211c710eb1f58b3f60f809;p=pandora-kernel.git iommu/omap: Check for valid archdata in attach_dev Any device requiring to be attached to an iommu_domain must have valid archdata containing the necessary iommu information, which is SoC-specific. Add a check in the omap_iommu_attach_dev to make sure that the device has valid archdata before accessing different SoC-specific fields of the archdata. This prevents a NULL pointer dereference on any misconfigured devices. Signed-off-by: Suman Anna Acked-by: Laurent Pinchart Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed