aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/uinput.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-02-04 03:30:39 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-02-04 03:31:10 -0500
commitdaf8a96b2d4a5d4d1d288831be43457c84c55a2f (patch)
tree1fba1ea594088e097d02007d04de319d95e3e84f /drivers/input/misc/uinput.c
parent0b7024ac4df5821347141c18e680b7166bc1cb20 (diff)
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: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc/uinput.c')
-rw-r--r--drivers/input/misc/uinput.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
index 18206e18d1b1..1477466076ad 100644
--- a/drivers/input/misc/uinput.c
+++ b/drivers/input/misc/uinput.c
@@ -290,6 +290,7 @@ static int uinput_open(struct inode *inode, struct file *file)
290 newdev->state = UIST_NEW_DEVICE; 290 newdev->state = UIST_NEW_DEVICE;
291 291
292 file->private_data = newdev; 292 file->private_data = newdev;
293 nonseekable_open(inode, file);
293 294
294 return 0; 295 return 0;
295} 296}