Re: [PATCH] iommu/vt-d: Fix PASID reference leak

2021-08-17 Thread Lu Baolu
On 2021/8/14 2:13, Fenghua Yu wrote: A PASID reference is increased whenever a device is bound to an mm (and its PASID) successfully (i.e. the device's sdev user count is increased). But the reference is not dropped every time the device is unbound successfully from the mm (i.e. the device's sdev

Re: [PATCH] iommu/vt-d: Fix PASID reference leak

2021-08-14 Thread Lu Baolu
On 2021/8/14 2:13, Fenghua Yu wrote: A PASID reference is increased whenever a device is bound to an mm (and its PASID) successfully (i.e. the device's sdev user count is increased). But the reference is not dropped every time the device is unbound successfully from the mm (i.e. the device's sdev

[PATCH] iommu/vt-d: Fix PASID reference leak

2021-08-13 Thread Fenghua Yu
A PASID reference is increased whenever a device is bound to an mm (and its PASID) successfully (i.e. the device's sdev user count is increased). But the reference is not dropped every time the device is unbound successfully from the mm (i.e. the device's sdev user count is decreased). The referenc