projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7024a
)
Input: uinput - mark as non-seekable
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 4 Feb 2010 08:30:39 +0000
(
00:30
-0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 4 Feb 2010 08:31:10 +0000
(
00:31
-0800)
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>
drivers/input/misc/uinput.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/uinput.c
b/drivers/input/misc/uinput.c
index 18206e18d1b1f622b8a3daf3cc0d61dd7af311f3..1477466076ad1764989f82387cc737fd453181ab 100644
(file)
--- 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)
newdev->state = UIST_NEW_DEVICE;
file->private_data = newdev;
+ nonseekable_open(inode, file);
return 0;
}