xen/iommu: dt: Check the return value of xsm_deassign_dtdevice()
authorJulien Grall <jgrall@amazon.com>
Wed, 25 May 2022 08:52:38 +0000 (09:52 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 25 May 2022 08:52:59 +0000 (09:52 +0100)
commitb22db3fcba1a5b4f9e563b58d402f1d5c434209f
tree59a7ff86c2441bf5d9850affbf7399c6ddacb737
parent49399b101e38fb2c11478c849ffdaaace8e318a8
xen/iommu: dt: Check the return value of xsm_deassign_dtdevice()

xsm_deassign_dtdevice() will indicate whether the caller is allowed
to issue the operation. So the return value has to be checked.

Spotted by clang static analyzer.

Fixes: fe36cccc483c ("xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device")
Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/drivers/passthrough/device_tree.c