Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262611AbTI1Xbh (ORCPT ); Sun, 28 Sep 2003 19:31:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262789AbTI1X35 (ORCPT ); Sun, 28 Sep 2003 19:29:57 -0400 Received: from hera.cwi.nl ([192.16.191.8]:37870 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id S262787AbTI1X3I (ORCPT ); Sun, 28 Sep 2003 19:29:08 -0400 From: Andries.Brouwer@cwi.nl Date: Mon, 29 Sep 2003 01:29:05 +0200 (MEST) Message-Id: To: torvalds@osdl.org Subject: [PATCH] fat sparse fixes Cc: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/