diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-17 11:31:22 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-29 08:57:30 (GMT) |
commit | 65004276fc45a37c133f09a86712e6f2daede342 (patch) | |
tree | 54090baaf8321c5c14ae6a388e7b1474146d37dd /drivers/tty | |
parent | 747977976b8caf98b63559f200a5e94189059dc0 (diff) | |
download | linux-65004276fc45a37c133f09a86712e6f2daede342.tar.xz |
vc: switch to fixed_size_llseek()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/vt/vc_screen.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/tty/vt/vc_screen.c b/drivers/tty/vt/vc_screen.c index d7799de..14a2b5f 100644 --- a/drivers/tty/vt/vc_screen.c +++ b/drivers/tty/vt/vc_screen.c @@ -188,22 +188,7 @@ static loff_t vcs_lseek(struct file *file, loff_t offset, int orig) console_unlock(); if (size < 0) return size; - switch (orig) { - default: - return -EINVAL; - case 2: - offset += size; - break; - case 1: - offset += file->f_pos; - case 0: - break; - } - if (offset < 0 || offset > size) { - return -EINVAL; - } - file->f_pos = offset; - return file->f_pos; + return fixed_size_llseek(file, offset, orig, size); } |