public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] filldir write data missing size
@ 2008-07-19  3:18 Yoshinori Sato
  2008-07-19 17:24 ` OGAWA Hirofumi
  0 siblings, 1 reply; 9+ messages in thread
From: Yoshinori Sato @ 2008-07-19  3:18 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml

"loff_t" is long long.
But "d_off" is unsigned long.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

diff --git a/fs/readdir.c b/fs/readdir.c
index 4e026e5..01e7152
--- a/fs/readdir.c
+++ b/fs/readdir.c
@@ -159,7 +159,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
 		return -EOVERFLOW;
 	dirent = buf->previous;
 	if (dirent) {
-		if (__put_user(offset, &dirent->d_off))
+		if (__put_user((unsigned long)offset, &dirent->d_off))
 			goto efault;
 	}
 	dirent = buf->current_dir;

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

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

end of thread, other threads:[~2008-07-28 20:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19  3:18 [PATCH] filldir write data missing size Yoshinori Sato
2008-07-19 17:24 ` OGAWA Hirofumi
2008-07-19 18:28   ` Yoshinori Sato
2008-07-19 20:11     ` OGAWA Hirofumi
2008-07-21 15:48       ` Yoshinori Sato
2008-07-21 21:31         ` OGAWA Hirofumi
2008-07-28 18:58           ` Yoshinori Sato
2008-07-28 19:07           ` Paul Mundt
2008-07-28 20:14             ` OGAWA Hirofumi

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