Re: [PATCH 2/2] iommu/amd: Destroy api_lock mutex when freeing domain

From: Vesely, Jan
Date: Thu Jun 09 2016 - 12:20:47 EST


On Sat, 2016-05-21 at 14:11 -0400, Jan Vesely wrote:
> From: Jan Vesely <jan.vesely@xxxxxxx>
>
> Signed-off-by: Jan Vesely <jan.vesely@xxxxxxx>
> ---
> Âdrivers/iommu/amd_iommu.c | 1 +
> Â1 file changed, 1 insertion(+)
>
> diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
> index 17c76f2..4ff5e40 100644
> --- a/drivers/iommu/amd_iommu.c
> +++ b/drivers/iommu/amd_iommu.c
> @@ -3016,6 +3016,7 @@ static void protection_domain_free(struct
> protection_domain *domain)
> Â
> Â del_domain_from_list(domain);
> Â
> + mutex_destroy(&domain->api_lock);
> Â if (domain->id)
> Â domain_id_free(domain->id);
> Â

ping