Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7529)

Unified Diff: drivers/input/joydev.c

Issue 6878004: BACKPORT: Input: mark input interfaces as non-seekable (Closed) Base URL: http://git.chromium.org/git/kernel.git@master
Patch Set: Rebase on 6873042 Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « drivers/input/evdev.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/input/joydev.c
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
index a75030926c16d7d4a0d28748681e846e1fabf6de..a1bde26648aa0031b25768d20813f1a87e344be5 100644
--- a/drivers/input/joydev.c
+++ b/drivers/input/joydev.c
@@ -286,6 +286,8 @@ static int joydev_open(struct inode *inode, struct file *file)
goto err_free_client;
file->private_data = client;
+ nonseekable_open(inode, file);
+
return 0;
err_free_client:
« no previous file with comments | « drivers/input/evdev.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698