Patch "iommu/exynos: Fix error handling in exynos_iommu_init()" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    iommu/exynos: Fix error handling in exynos_iommu_init()

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     iommu-exynos-fix-error-handling-in-exynos_iommu_init.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 38f1411ca580b947b1fe0c457075aa59672849c3
Author: Yang Yingliang <yangyingliang@xxxxxxxxxx>
Date:   Wed Jan 4 17:57:02 2023 +0800

    iommu/exynos: Fix error handling in exynos_iommu_init()
    
    [ Upstream commit 53719876e064643a6e58b5e6067a149a0fd191ec ]
    
    If platform_driver_register() fails, it don't need unregister and call
    kmem_cache_free() to free the memory allocated before calling register.
    
    Fixes: bbc4d205d93f ("iommu/exynos: Fix driver initialization sequence")
    Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
    Reviewed-by: Sam Protsenko <semen.protsenko@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230104095702.2591122-1-yangyingliang@xxxxxxxxxx
    Signed-off-by: Joerg Roedel <jroedel@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index b0cde22119875..c1d579c24740b 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -1446,7 +1446,7 @@ static int __init exynos_iommu_init(void)
 
 	return 0;
 err_reg_driver:
-	platform_driver_unregister(&exynos_sysmmu_driver);
+	kmem_cache_free(lv2table_kmem_cache, zero_lv2_table);
 err_zero_lv2:
 	kmem_cache_destroy(lv2table_kmem_cache);
 	return ret;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux