| commit | b09ed52db1e688eb8205b1939ca1345179ecd515 | [log] [tgz] |
|---|---|---|
| author | Nicolin Chen <nicolinc@nvidia.com> | Tue Oct 14 14:48:46 2025 -0700 |
| committer | Jason Gunthorpe <jgg@nvidia.com> | Mon Oct 20 20:01:23 2025 -0300 |
| tree | e1a9b30c4bf413f51408cee867cafdf6d71e98a0 | |
| parent | cb30dfa75d55eced379a42fd67bd5fb7ec38555e [diff] |
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: 1d235d849425 ("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>