From: Andries.Brouwer@cwi.nl
To: torvalds@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] fat sparse fixes
Date: Mon, 29 Sep 2003 01:29:05 +0200 (MEST) [thread overview]
Message-ID: <UTC200309282329.h8SNT5I29917.aeb@smtp.cwi.nl> (raw)
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;
/*
next reply other threads:[~2003-09-28 23:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-28 23:29 Andries.Brouwer [this message]
2003-09-29 16:50 ` [PATCH] fat sparse fixes Linus Torvalds
2003-09-30 7:05 ` Christopher Li
2003-09-30 23:59 ` Linus Torvalds
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=UTC200309282329.h8SNT5I29917.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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;
as well as URLs for NNTP newsgroup(s).