Explorar o código

Input: uinput - mark as non-seekable

Seeking does not make sense for uinput so let's use nonseekable_open
to mark the device non-seekable.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Dmitry Torokhov %!s(int64=16) %!d(string=hai) anos
pai
achega
daf8a96b2d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      drivers/input/misc/uinput.c

+ 1 - 0
drivers/input/misc/uinput.c

@@ -290,6 +290,7 @@ static int uinput_open(struct inode *inode, struct file *file)
 	newdev->state = UIST_NEW_DEVICE;
 
 	file->private_data = newdev;
+	nonseekable_open(inode, file);
 
 	return 0;
 }