Commit daf8a96b authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0b7024ac
...@@ -290,6 +290,7 @@ static int uinput_open(struct inode *inode, struct file *file) ...@@ -290,6 +290,7 @@ static int uinput_open(struct inode *inode, struct file *file)
newdev->state = UIST_NEW_DEVICE; newdev->state = UIST_NEW_DEVICE;
file->private_data = newdev; file->private_data = newdev;
nonseekable_open(inode, file);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment