aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorSuman Anna <[email protected]>2014-09-04 17:27:29 -0500
committerJoerg Roedel <[email protected]>2014-09-05 15:31:05 +0200
commite3f595b9039c888016211c710eb1f58b3f60f809 (patch)
treeaff1744f04e68d4c75b471a135b9972c5e209b19 /net/lapb/lapb_in.c
parent69e273c0b0a3c337a521d083374c918dc52c666f (diff)
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 <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions