All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read()
@ 2009-12-03 19:18 Sunil Mushran
  2009-12-03 19:19 ` Sunil Mushran
  2009-12-04  2:55 ` Joel Becker
  0 siblings, 2 replies; 3+ messages in thread
From: Sunil Mushran @ 2009-12-03 19:18 UTC (permalink / raw)
  To: ocfs2-devel

__generic_file_aio_read() was being passed as incorrect address for pos
leading to a run-away read.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
---
 kapi-compat/include/aiovec.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kapi-compat/include/aiovec.h b/kapi-compat/include/aiovec.h
index a10d5b5..a8896f1 100644
--- a/kapi-compat/include/aiovec.h
+++ b/kapi-compat/include/aiovec.h
@@ -13,7 +13,7 @@ static ssize_t kapi_generic_file_aio_read(struct kiocb *iocb,
 {
 	BUG_ON(iocb->ki_pos != pos);
 
-	return __generic_file_aio_read(iocb, iov, nr_segs, &pos);
+	return __generic_file_aio_read(iocb, iov, nr_segs, &iocb->ki_pos);
 }
 
 static ssize_t __ocfs2_file_aio_read(struct kiocb *iocb,
-- 
1.5.6.5

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

end of thread, other threads:[~2009-12-04  2:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 19:18 [Ocfs2-devel] [PATCH 1/1] ocfs2: Incorrect address of pos passed to __generic_file_aio_read() Sunil Mushran
2009-12-03 19:19 ` Sunil Mushran
2009-12-04  2:55 ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.