summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/vfio.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-06-29 15:07:02 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-07-16 15:19:15 +0200
commit54ef7a47f67de9e87022a5310d1e8332af3e2696 (patch)
tree79bd3ff052cc46640384c50acda6a44dbde7e86c /drivers/vfio/vfio.c
parentdma-buf: remove useless FMODE_LSEEK flag (diff)
downloadlinux-54ef7a47f67de9e87022a5310d1e8332af3e2696.tar.xz
linux-54ef7a47f67de9e87022a5310d1e8332af3e2696.zip
vfio: do not set FMODE_LSEEK flag
This file does not support llseek, so don't set the flag advertising it. Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/vfio/vfio.c')
-rw-r--r--drivers/vfio/vfio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vfio/vfio.c b/drivers/vfio/vfio.c
index 61e71c1154be..d194dda89542 100644
--- a/drivers/vfio/vfio.c
+++ b/drivers/vfio/vfio.c
@@ -1129,7 +1129,7 @@ static struct file *vfio_device_open(struct vfio_device *device)
* Appears to be missing by lack of need rather than
* explicitly prevented. Now there's need.
*/
- filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
+ filep->f_mode |= (FMODE_PREAD | FMODE_PWRITE);
if (device->group->type == VFIO_NO_IOMMU)
dev_warn(device->dev, "vfio-noiommu device opened by user "