Re: [PATCH] iommu:Check that iommu_device_create has completed successfully in alloc_iommu

From: Joerg Roedel
Date: Mon Jan 04 2016 - 11:38:23 EST


On Mon, Jan 04, 2016 at 11:27:10AM -0500, Nicholas Krause wrote:
> Yes that's true and was wondering if you want me to fix it up to set
> the pointer back to null first or if preferred around safe state.

The best solution is to set the dmar->iommu pointer after the error
check for iommu_device_create().



Joerg

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/