summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAlex Mastro <amastro@fb.com>2025-09-08 08:58:40 -0700
committerAlex Williamson <alex.williamson@redhat.com>2025-09-19 14:45:43 -0600
commit16df67f2189a71a8310bcebddb87ed569e8352be (patch)
tree767cf1891a26abf4958d962e2bdcf57fd70a0c69 /rust/helpers/helpers.c
parenteaba58355ecd124b4a8c91df7335970ad9fe2624 (diff)
vfio: return -ENOTTY for unsupported device feature
The two implementers of vfio_device_ops.device_feature, vfio_cdx_ioctl_feature and vfio_pci_core_ioctl_feature, return -ENOTTY in the fallthrough case when the feature is unsupported. For consistency, the base case, vfio_ioctl_device_feature, should do the same when device_feature == NULL, indicating an implementation has no feature extensions. Signed-off-by: Alex Mastro <amastro@fb.com> Link: https://lore.kernel.org/r/20250908-vfio-enotty-v1-1-4428e1539e2e@fb.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions