Re: [PATCH] intel-iommu: correct the value used for error_setg_errno()

2022-04-01 Thread Peter Xu
On Fri, Apr 01, 2022 at 10:28:24AM +0800, Jason Wang wrote: > error_setg_errno() expects a normal errno value, not a negated > one, so we should use ENOTSUP instead of -ENOSUP. > > Fixes: Coverity CID 1487174 > Fixes: ("intel_iommu: support snoop control") > Signed-off-by: Jason Wang Reviewed-by

Re: [PATCH] intel-iommu: correct the value used for error_setg_errno()

2022-04-01 Thread Peter Maydell
On Fri, 1 Apr 2022 at 03:29, Jason Wang wrote: > > error_setg_errno() expects a normal errno value, not a negated > one, so we should use ENOTSUP instead of -ENOSUP. > > Fixes: Coverity CID 1487174 > Fixes: ("intel_iommu: support snoop control") > Signed-off-by: Jason Wang > --- > hw/i386/intel_

[PATCH] intel-iommu: correct the value used for error_setg_errno()

2022-03-31 Thread Jason Wang
error_setg_errno() expects a normal errno value, not a negated one, so we should use ENOTSUP instead of -ENOSUP. Fixes: Coverity CID 1487174 Fixes: ("intel_iommu: support snoop control") Signed-off-by: Jason Wang --- hw/i386/intel_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di