浏览代码

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 15 年之前
父节点
当前提交
daf8a96b2d
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 }