From: Badari Pulavarty <pbadari@us.ibm.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] vfs_read/vfs_write small bug fix (2.5.29)
Date: Mon, 29 Jul 2002 11:25:45 -0700 (PDT) [thread overview]
Message-ID: <200207291825.g6TIPj026021@eng2.beaverton.ibm.com> (raw)
Hi,
Here is a patch to fix small bug in for vfs_read/vfs_write.
Please apply.
Thanks,
Badari
--- linux-2.5.29/fs/read_write.c Mon Jul 29 11:07:32 2002
+++ linux.new/fs/read_write.c Mon Jul 29 11:07:57 2002
@@ -184,7 +184,7 @@
return -EBADF;
if (!file->f_op || !file->f_op->read)
return -EINVAL;
- if (pos < 0)
+ if (*pos < 0)
return -EINVAL;
ret = locks_verify_area(FLOCK_VERIFY_READ, inode, file, *pos, count);
@@ -209,7 +209,7 @@
return -EBADF;
if (!file->f_op || !file->f_op->write)
return -EINVAL;
- if (pos < 0)
+ if (*pos < 0)
return -EINVAL;
ret = locks_verify_area(FLOCK_VERIFY_WRITE, inode, file, *pos, count);
next reply other threads:[~2002-07-29 18:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-29 18:25 Badari Pulavarty [this message]
2002-07-29 19:02 ` Paul Larson
2002-07-29 20:11 ` Linus Torvalds
2002-07-29 21:06 ` Paul Larson
2002-07-29 21:22 ` Linus Torvalds
2002-07-29 22:06 ` Paul Larson
2002-07-29 22:17 ` Linus Torvalds
2002-07-30 7:37 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200207291825.g6TIPj026021@eng2.beaverton.ibm.com \
--to=pbadari@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®