]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Free resources if failed to create domain for PCIe endpoint
authorJiang Liu <jiang.liu@linux.intel.com>
Wed, 19 Feb 2014 06:07:27 +0000 (14:07 +0800)
committerJoerg Roedel <joro@8bytes.org>
Tue, 4 Mar 2014 16:51:01 +0000 (17:51 +0100)
commit7dffa6a27f8f6a67f3969fad09306ab96cf6a6b1
tree62c55a6b27f820677c758ace5533bd7cf095db7a
parent1a2a873c600bd08835c889c087846abf799d76da
iommu/vt-d: Free resources if failed to create domain for PCIe endpoint

Enhance function get_domain_for_dev() to release allocated resources
if failed to create domain for PCIe endpoint, otherwise the allocated
resources will get lost.

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/intel-iommu.c