lkml.org 
[lkml]   [2024]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH rc 1/8] iommu/vt-d: Track nested domains in parent
From


On 2024/2/8 16:28, Tian, Kevin wrote:
>> From: Liu, Yi L <yi.l.liu@intel.com>
>> Sent: Thursday, February 8, 2024 4:23 PM
>>
>> static void intel_nested_domain_free(struct iommu_domain *domain)
>> {
>> + struct dmar_domain *dmar_domain = to_dmar_domain(domain);
>> + struct dmar_domain *s2_domain = dmar_domain->s2_domain;
>> +
>> + spin_lock(&s2_domain->s1_lock);
>> + list_del(&dmar_domain->s2_link);
>> + spin_unlock(&s2_domain->s1_lock);
>> kfree(to_dmar_domain(domain));
>
> use 'dmar_domain'.

Oops. yes it is.

> Reviewed-by: Kevin Tian <kevin.tian@intel.com>

--
Regards,
Yi Liu

\
 
 \ /
  Last update: 2024-05-27 14:54    [W:0.482 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site