Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Jul 2001 15:29:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Jul 2001 15:29:23 -0400 Received: from mail.parknet.co.jp ([210.134.213.6]:49166 "EHLO mail.parknet.co.jp") by vger.kernel.org with ESMTP id ; Thu, 12 Jul 2001 15:29:18 -0400 To: "Mario 'BitKoenig' Holbe" Cc: linux-kernel@vger.kernel.org Subject: Re: vfat: attempt to access beyond end of device In-Reply-To: <20010712141653.A483@c239-1.fem.tu-ilmenau.de> From: OGAWA Hirofumi Date: 13 Jul 2001 04:29:02 +0900 In-Reply-To: <20010712141653.A483@c239-1.fem.tu-ilmenau.de> Message-ID: <87hewi2bgh.fsf@devron.myhome.or.jp> Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.103 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, This bug will be fixed by the following change. diff -urN linux-2.4.7-pre6.orig/fs/fat/inode.c linux-2.4.7-pre6/fs/fat/inode.c --- linux-2.4.7-pre6.orig/fs/fat/inode.c Tue Jun 12 11:15:27 2001 +++ linux-2.4.7-pre6/fs/fat/inode.c Fri Jul 13 04:20:04 2001 @@ -842,7 +842,7 @@ struct super_block *sb = inode->i_sb; struct buffer_head *bh; struct msdos_dir_entry *raw_entry; - int i_pos; + unsigned int i_pos; retry: i_pos = MSDOS_I(inode)->i_location; But, should change ino/i_location/i_pos to unsigned long in fat/vfat/msdos/umsdos, IMHO. Thanks. -- OGAWA Hirofumi - 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/