lkml.org 
[lkml]   [2016]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] iommu/amd: Destroy api_lock mutex when freeing domain
Date
On Sat, 2016-05-21 at 14:11 -0400, Jan Vesely wrote:
> From: Jan Vesely <jan.vesely@amd.com>
>
> Signed-off-by: Jan Vesely <jan.vesely@amd.com>
> ---
>  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
\
 
 \ /
  Last update: 2016-06-09 19:01    [W:0.077 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site