提交 3d7bbd45 编写于 作者: D Dmitry Torokhov

Input: mark input interfaces as non-seekable

Seeking does not make sense for input interfaces such as evdev and joydev
so let's use nonseekable_open to mark them non-seekable.
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 daf8a96b
...@@ -278,6 +278,8 @@ static int evdev_open(struct inode *inode, struct file *file) ...@@ -278,6 +278,8 @@ static int evdev_open(struct inode *inode, struct file *file)
goto err_free_client; goto err_free_client;
file->private_data = client; file->private_data = client;
nonseekable_open(inode, file);
return 0; return 0;
err_free_client: err_free_client:
......
...@@ -286,6 +286,8 @@ static int joydev_open(struct inode *inode, struct file *file) ...@@ -286,6 +286,8 @@ static int joydev_open(struct inode *inode, struct file *file)
goto err_free_client; goto err_free_client;
file->private_data = client; file->private_data = client;
nonseekable_open(inode, file);
return 0; return 0;
err_free_client: err_free_client:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册