]> git.karo-electronics.de Git - linux-beck.git/commitdiff
viotape: use noop_llseek
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Jul 2010 21:11:07 +0000 (23:11 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 16 Sep 2010 08:33:15 +0000 (10:33 +0200)
Some applications try to seek on tape devices
and fail if they return an error. Since we
want to change the default llseek action to
no_llseek, viotape needs to be changed to use
noop_llseek explicitly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/char/viotape.c

index 42f7fa442ff80653c3cbabf9c80bd1b2e05de28d..442c3f5b642a979b870abdee760ed9f66b2bca13 100644 (file)
@@ -804,6 +804,7 @@ const struct file_operations viotap_fops = {
        .unlocked_ioctl =       viotap_unlocked_ioctl,
        .open =                 viotap_open,
        .release =              viotap_release,
+       .llseek =               noop_llseek,
 };
 
 /* Handle interrupt events for tape */