diff options
author | Suman Anna <s-anna@ti.com> | 2014-09-05 02:27:29 +0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-09-05 17:31:05 +0400 |
commit | e3f595b9039c888016211c710eb1f58b3f60f809 (patch) | |
tree | aff1744f04e68d4c75b471a135b9972c5e209b19 /init | |
parent | 69e273c0b0a3c337a521d083374c918dc52c666f (diff) | |
download | linux-e3f595b9039c888016211c710eb1f58b3f60f809.tar.xz |
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 <s-anna@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions