Skip to content

Commit

Permalink
viotape: use noop_llseek
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann committed Sep 16, 2010
1 parent cb3b9cf commit aadbd43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/viotape.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit aadbd43

Please sign in to comment.