aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt
diff options
context:
space:
mode:
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