]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Check the return value of iommu_device_create()
authorNicholas Krause <xerofoify@gmail.com>
Mon, 4 Jan 2016 23:27:57 +0000 (18:27 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 7 Jan 2016 12:43:56 +0000 (13:43 +0100)
commit6cec619e8513bebd14ae6c9f2beb8f05e4b8449b
tree375165f1ab8b06e8071952edcab9f23b303a9300
parent1cbd66d2efb1bdd434a3b98d3a232f27b93e84e7
iommu/vt-d: Check the return value of iommu_device_create()

This adds the proper check to alloc_iommu to make sure that
the call to iommu_device_create has completed successfully
and if not return the error code to the caller after freeing
up resources allocated previously.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/dmar.c