]> xenbits.xensource.com Git - people/royger/xen.git/commit
xen/iommu: cleanup iommu related domctl handling
authorJuergen Gross <jgross@suse.com>
Tue, 26 Apr 2022 08:23:58 +0000 (10:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Apr 2022 08:23:58 +0000 (10:23 +0200)
commit9cd7e31b3f584e97a138a770cfb031a91a867936
treedc01427cbbe9f150ef4208916df68582c61d4c73
parent2419a159fb943c24a6f2439604b9fdb1478fcd08
xen/iommu: cleanup iommu related domctl handling

Today iommu_do_domctl() is being called from arch_do_domctl() in the
"default:" case of a switch statement. This has led already to crashes
due to unvalidated parameters.

Fix that by moving the call of iommu_do_domctl() to the main switch
statement of do_domctl().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> # Arm
xen/arch/arm/domctl.c
xen/arch/x86/domctl.c
xen/common/domctl.c
xen/include/xen/iommu.h