Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/iommu/msm_iommu_dev.c: fix leak and clean up error paths
Fix two obvious problems: 1. We have registered msm_iommu_driver first, and need unregister it when registered msm_iommu_ctx_driver fail 2. We don't need to kfree drvdata before kzalloc was successful. [[email protected]: remove now-unneeded initialization of ctx_drvdata, remove unneeded braces] Signed-off-by: Libo Chen <[email protected]> Acked-by: David Brown <[email protected]> Cc: David Woodhouse <[email protected]> Cc: James Hogan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information