Skip to content

Commit

Permalink
Input: mousedev - mark mousedev interfaces as non-seekable
Browse files Browse the repository at this point in the history
Seeking does not make sense for mousedev, so let's use nonseekable_open()
to mark its devices as non-seekable.

Reviewed-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Dmitry Torokhov committed Oct 8, 2012
1 parent 3376b8b commit 0124be4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/mousedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ static int mousedev_open(struct inode *inode, struct file *file)
goto err_free_client;

file->private_data = client;
nonseekable_open(inode, file);
return 0;

err_free_client:
Expand Down

0 comments on commit 0124be4

Please sign in to comment.