aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-17 07:31:22 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-29 04:57:30 -0400
commit65004276fc45a37c133f09a86712e6f2daede342 (patch)
tree54090baaf8321c5c14ae6a388e7b1474146d37dd /drivers/tty/vt
parent747977976b8caf98b63559f200a5e94189059dc0 (diff)
vc: switch to fixed_size_llseek()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vc_screen.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/tty/vt/vc_screen.c b/drivers/tty/vt/vc_screen.c
index d7799deacb21..14a2b5f11bca 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)
188 console_unlock(); 188 console_unlock();
189 if (size < 0) 189 if (size < 0)
190 return size; 190 return size;
191 switch (orig) { 191 return fixed_size_llseek(file, offset, orig, size);
192 default:
193 return -EINVAL;
194 case 2:
195 offset += size;
196 break;
197 case 1:
198 offset += file->f_pos;
199 case 0:
200 break;
201 }
202 if (offset < 0 || offset > size) {
203 return -EINVAL;
204 }
205 file->f_pos = offset;
206 return file->f_pos;
207} 192}
208 193
209 194