Merge tag 'pull-work.lseek' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[sfrench/cifs-2.6.git] / drivers / vfio / vfio.c
index e60b06f2ac22393ae4f3deaf02e680d506368eab..521a3eabf0e1db66b9b4bc807fa1c0d3935d6380 100644 (file)
@@ -1132,7 +1132,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 "