summaryrefslogtreecommitdiffstats
path: root/drivers/input/mousedev.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-10-08 09:07:24 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-10-08 09:37:50 -0700
commit0124be49770469cfb258d7df4693e70b4c5fb013 (patch)
tree21432c28dceb81846cfb8bea17a3dc7b2bc1fcb8 /drivers/input/mousedev.c
parent3376b8b753bcc300c4f1b170d01c2fb472889a3d (diff)
downloadop-kernel-dev-0124be49770469cfb258d7df4693e70b4c5fb013.zip
op-kernel-dev-0124be49770469cfb258d7df4693e70b4c5fb013.tar.gz
Input: mousedev - mark mousedev interfaces as non-seekable
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>
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r--drivers/input/mousedev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 2baf32d..88b962a 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -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:
OpenPOWER on IntegriCloud