public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vfs_read/vfs_write small bug fix (2.5.29)
@ 2002-07-29 18:25 Badari Pulavarty
  2002-07-29 19:02 ` Paul Larson
  2002-07-29 20:11 ` Linus Torvalds
  0 siblings, 2 replies; 8+ messages in thread
From: Badari Pulavarty @ 2002-07-29 18:25 UTC (permalink / raw)
  To: linux-kernel

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);

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-30  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-29 18:25 [PATCH] vfs_read/vfs_write small bug fix (2.5.29) Badari Pulavarty
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox