[PATCH] fat sparse fixes

From: Andries . Brouwer
Date: Sun Sep 28 2003 - 18:34:39 EST


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;
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/