Skip to content

Commit

Permalink
Input: uinput - mark as non-seekable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Feb 4, 2010
1 parent 0b7024a commit daf8a96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/misc/uinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit daf8a96

Please sign in to comment.