Peter
--- linux/mm/filemap.c.orig Mon Nov 22 13:36:43 1999
+++ linux/mm/filemap.c Mon Nov 22 13:39:04 1999
@@ -1791,18 +1791,21 @@
struct dentry *dentry = file->f_dentry;
struct inode *inode = dentry->d_inode;
unsigned long limit = current->rlim[RLIMIT_FSIZE].rlim_cur;
- loff_t pos = *ppos;
+ loff_t pos;
struct page *page, **hash, *cached_page;
unsigned long written;
long status;
int err;
- if (pos < 0)
- return -EINVAL;
-
cached_page = NULL;
down(&inode->i_sem);
+
+ pos = *ppos;
+ err = -EINVAL;
+ if (pos < 0)
+ goto out;
+
err = file->f_error;
if (err) {
file->f_error = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/