Commit e7628fa
committed
iommufd/selftest: Fix ioctl return value in _test_cmd_trigger_vevents()
JIRA: https://issues.redhat.com/browse/RHEL-116573
Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd.git
commit b09ed52
Author: Nicolin Chen <nicolinc@nvidia.com>
Date: Tue Oct 14 14:48:46 2025 -0700
iommufd/selftest: Fix ioctl return value in _test_cmd_trigger_vevents()
The ioctl returns 0 upon success, so !0 returning -1 breaks the selftest.
Drop the '!' to fix it.
Fixes: 1d235d8 ("iommu/selftest: prevent use of uninitialized variable")
Link: https://patch.msgid.link/r/20251014214847.1113759-1-nicolinc@nvidia.com
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Eder Zulian <ezulian@redhat.com>1 parent 3b46495 commit e7628fa
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
1047 | | - | |
1048 | | - | |
| 1047 | + | |
| 1048 | + | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| |||
0 commit comments