summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel/iommu.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-11-26 14:55:55 +0100
committerJoerg Roedel <jroedel@suse.de>2021-11-26 22:54:47 +0100
commit4e5973dd2725bb30c3db622f7d73f7a5864ce718 (patch)
tree68de0d73a4bd890163f2dfec8763c7ce6e0653cd /drivers/iommu/intel/iommu.c
parentiommu/rockchip: Fix PAGE_DESC_HI_MASKs for RK3568 (diff)
downloadlinux-4e5973dd2725bb30c3db622f7d73f7a5864ce718.tar.xz
linux-4e5973dd2725bb30c3db622f7d73f7a5864ce718.zip
iommu/vt-d: Fix an unbalanced rcu_read_lock/rcu_read_unlock()
If we return -EOPNOTSUPP, the rcu lock remains lock. This is spurious. Go through the end of the function instead. This way, the missing 'rcu_read_unlock()' is called. Fixes: 7afd7f6aa21a ("iommu/vt-d: Check FL and SL capability sanity in scalable mode") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/40cc077ca5f543614eab2a10e84d29dd190273f6.1636217517.git.christophe.jaillet@wanadoo.fr Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/20211126135556.397932-2-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions