[PATCH] iommu/vt-d: Fix up error handling in alloc_iommu successfully in alloc_iommu
From: Joerg Roedel
Date: Thu Jan 07 2016 - 06:19:40 EST
On Mon, Jan 04, 2016 at 06:27:57PM -0500, Nicholas Krause wrote:
> 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
> to the caller the error code returned after freeing up resources
> allocated previously by alloc_iommu.
>
> Signed-off-by: Nicholas Krause <xerofoify@xxxxxxxxx>
Applied with this fixup on top: