From: Dmitry Torokhov Date: Thu, 4 Feb 2010 08:30:39 +0000 (-0800) Subject: Input: uinput - mark as non-seekable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=daf8a96b2d4a5d4d1d288831be43457c84c55a2f;p=linux-beck.git 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 --- 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) newdev->state = UIST_NEW_DEVICE; file->private_data = newdev; + nonseekable_open(inode, file); return 0; }