diff options
author | Yuan Can <yuancan@huawei.com> | 2022-11-21 11:20:22 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-11-22 17:51:31 +0300 |
commit | 73f5fc5f884ad0c5f7d57f66303af64f9f002526 (patch) | |
tree | ceb729426b77290437bf1d4390550f367f5497b1 /Documentation/devicetree/bindings/iommu | |
parent | 8330b9ebf9ef10156b01d40176b9fff1ce2a374c (diff) | |
download | linux-73f5fc5f884ad0c5f7d57f66303af64f9f002526.tar.xz |
iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()
The fsl_pamu_probe() returns directly when create_csd() failed, leaving
irq and memories unreleased.
Fix by jumping to error if create_csd() returns error.
Fixes: 695093e38c3e ("iommu/fsl: Freescale PAMU driver and iommu implementation.")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Link: https://lore.kernel.org/r/20221121082022.19091-1-yuancan@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'Documentation/devicetree/bindings/iommu')
0 files changed, 0 insertions, 0 deletions