Re: [PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-10 Thread Lukasz Luba
Hi Inki, On 3/9/20 12:45 AM, Inki Dae wrote: Hi Lukasz, 20. 3. 5. 오전 7:00에 Lukasz Luba 이(가) 쓴 글: There is a memory leak which left some objects not freed. The reference counter of mapping: 'mapping->kref' was 2 when calling arm_iommu_detach_device(), so the release_iommu_mapping() won't be cal

Re: [PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-08 Thread Inki Dae
Hi Lukasz, 20. 3. 5. 오전 7:00에 Lukasz Luba 이(가) 쓴 글: > There is a memory leak which left some objects not freed. The reference > counter of mapping: 'mapping->kref' was 2 when calling > arm_iommu_detach_device(), so the release_iommu_mapping() won't be called. > Since the old mapping structure is n

Re: [PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-06 Thread Lukasz Luba
Hi Marek, On 3/5/20 7:07 AM, Marek Szyprowski wrote: Hi Lukasz, On 04.03.2020 23:00, Lukasz Luba wrote: There is a memory leak which left some objects not freed. The reference counter of mapping: 'mapping->kref' was 2 when calling arm_iommu_detach_device(), so the release_iommu_mapping() won't

[PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-05 Thread Lukasz Luba
There is a memory leak which left some objects not freed. The reference counter of mapping: 'mapping->kref' was 2 when calling arm_iommu_detach_device(), so the release_iommu_mapping() won't be called. Since the old mapping structure is not going to be used any more (because it is detached and new

Re: [PATCH] drm/exynos: Fix memory leak and release IOMMU mapping structures

2020-03-04 Thread Marek Szyprowski
Hi Lukasz, On 04.03.2020 23:00, Lukasz Luba wrote: > There is a memory leak which left some objects not freed. The reference > counter of mapping: 'mapping->kref' was 2 when calling > arm_iommu_detach_device(), so the release_iommu_mapping() won't be called. > Since the old mapping structure is no