linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fat sparse fixes
@ 2003-09-28 23:29 Andries.Brouwer
  2003-09-29 16:50 ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Andries.Brouwer @ 2003-09-28 23:29 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

diff -u --recursive --new-file -X /linux/dontdiff a/fs/fat/dir.c b/fs/fat/dir.c
--- a/fs/fat/dir.c	Mon Sep 29 01:05:41 2003
+++ b/fs/fat/dir.c	Mon Sep 29 01:11:39 2003
@@ -630,7 +630,7 @@
 		    put_user(slen, &d1->d_reclen))
 			goto efault;
 	} else {
-		if (put_user(0, d2->d_name)			||
+		if (put_user(0, d2->d_name+0)			||
 		    put_user(0, &d2->d_reclen)			||
 		    copy_to_user(d1->d_name, name, len)		||
 		    put_user(0, d1->d_name+len)			||
@@ -663,7 +663,7 @@
 		return -EINVAL;
 	}
 
-	d1 = (struct dirent *)arg;
+	d1 = (struct dirent __user *)arg;
 	if (!access_ok(VERIFY_WRITE, d1, sizeof(struct dirent[2])))
 		return -EFAULT;
 	/*

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

end of thread, other threads:[~2003-10-01  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-28 23:29 [PATCH] fat sparse fixes Andries.Brouwer
2003-09-29 16:50 ` Linus Torvalds
2003-09-30  7:05   ` Christopher Li
2003-09-30 23:59     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).