iommu/vt-d: Fix leak in intel_pasid_alloc_table on error path
authorEric Auger <eric.auger@redhat.com>
Tue, 30 Apr 2019 07:30:04 +0000 (09:30 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 3 May 2019 15:34:27 +0000 (17:34 +0200)
commitdca4d60f5f8c9263f8f66724fa4750abd32d8db0
treec846f7437df8d84baa27998fda454fb457ec1150
parent5daab58043ee2bca861068e2595564828f3bc663
iommu/vt-d: Fix leak in intel_pasid_alloc_table on error path

If alloc_pages_node() fails, pasid_table is leaked. Free it.

Fixes: cc580e41260db ("iommu/vt-d: Per PCI device pasid table interfaces")

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-pasid.c