Commit daf8a96b2d4a5d4d1d288831be43457c84c55a2f

Authored by Dmitry Torokhov
1 parent 0b7024ac4d

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/input/misc/uinput.c
... ... @@ -290,6 +290,7 @@
290 290 newdev->state = UIST_NEW_DEVICE;
291 291  
292 292 file->private_data = newdev;
  293 + nonseekable_open(inode, file);
293 294  
294 295 return 0;
295 296 }