Skip to content

Commit

Permalink
drm/i915/gvt: throw error on unhandled vfio ioctls
Browse files Browse the repository at this point in the history
On unknown/unhandled ioctls the driver should return an error, so
userspace knows it tried to use something unsupported.

Cc: stable@vger.kernel.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
  • Loading branch information
Gerd Hoffmann authored and Zhenyu Wang committed Mar 22, 2018
1 parent d830307 commit 9f591ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gvt/kvmgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd,

}

return 0;
return -ENOTTY;
}

static ssize_t
Expand Down

0 comments on commit 9f591ae

Please sign in to comment.