]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/rockchip: Fix error handling in attach
authorTomasz Figa <tfiga@chromium.org>
Fri, 23 Mar 2018 07:38:04 +0000 (15:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 29 Mar 2018 10:22:25 +0000 (12:22 +0200)
commita51fb9e010e50f2caa3c9222373a7b4db9ed0725
treecb713dbecdf79aa808e49c7635d4c121a914b6d7
parentd323b9ca0571be29ba3185737197f029884ffa63
iommu/rockchip: Fix error handling in attach

Currently if the driver encounters an error while attaching device, it
will leave the IOMMU in an inconsistent state. Even though it shouldn't
really happen in reality, let's just add proper error path to keep
things consistent.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c