All of lore.kernel.org
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Mario 'BitKoenig' Holbe" <Mario.Holbe@RZ.TU-Ilmenau.DE>
Cc: linux-kernel@vger.kernel.org
Subject: Re: vfat: attempt to access beyond end of device
Date: 13 Jul 2001 04:29:02 +0900	[thread overview]
Message-ID: <87hewi2bgh.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <20010712141653.A483@c239-1.fem.tu-ilmenau.de>
In-Reply-To: <20010712141653.A483@c239-1.fem.tu-ilmenau.de>

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 <hirofumi@mail.parknet.co.jp>


  reply	other threads:[~2001-07-12 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12 12:16 vfat: attempt to access beyond end of device Mario 'BitKoenig' Holbe
2001-07-12 19:29 ` OGAWA Hirofumi [this message]
2001-07-12 21:18   ` Alexander Griesser
2001-07-13 15:13     ` OGAWA Hirofumi

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=87hewi2bgh.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=Mario.Holbe@RZ.TU-Ilmenau.DE \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.