Skip to content

Commit 54ef7a4

Browse files
zx2c4Al Viro
authored andcommitted
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 <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent c9eb2d4 commit 54ef7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vfio/vfio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ static struct file *vfio_device_open(struct vfio_device *device)
11291129
* Appears to be missing by lack of need rather than
11301130
* explicitly prevented. Now there's need.
11311131
*/
1132-
filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE);
1132+
filep->f_mode |= (FMODE_PREAD | FMODE_PWRITE);
11331133

11341134
if (device->group->type == VFIO_NO_IOMMU)
11351135
dev_warn(device->dev, "vfio-noiommu device opened by user "

0 commit comments

Comments
 (0)