patch-2.1.56 linux/drivers/char/vc_screen.c

Next file: linux/drivers/char/wdt.c
Previous file: linux/drivers/char/tty_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.55/linux/drivers/char/vc_screen.c linux/drivers/char/vc_screen.c
@@ -79,11 +79,10 @@
 	return size;
 }
 
-static long long
-vcs_lseek(struct inode *inode, struct file *file, long long offset, int orig)
+static long long vcs_lseek(struct file *file, long long offset, int orig)
 {
 	int size;
-	size = vcs_size(inode);
+	size = vcs_size(file->f_dentry->d_inode);
 
 	switch (orig) {
 		case 0:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov