OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d830307
)
drm/i915/gvt: throw error on unhandled vfio ioctls
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 21 Mar 2018 14:08:47 +0000
(15:08 +0100)
committer
Zhenyu Wang
<zhenyuw@linux.intel.com>
Thu, 22 Mar 2018 02:20:12 +0000
(10:20 +0800)
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>
drivers/gpu/drm/i915/gvt/kvmgt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/kvmgt.c
b/drivers/gpu/drm/i915/gvt/kvmgt.c
index
520fe3d
..
f8540cc
100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/
drivers/gpu/drm/i915/gvt/kvmgt.c
@@
-1254,7
+1254,7
@@
static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd,
}
- return
0
;
+ return
-ENOTTY
;
}
static ssize_t