This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: jffs2 umount
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- Cc: ecos-patches at sources dot redhat dot com
- Date: Sat, 4 Oct 2003 21:06:58 +0200
- Subject: Re: jffs2 umount
- References: <200309212238.13250.thomas.koeller@baslerweb.com> <20030923102031.GE2002@lunn.ch> <200309240013.10553.thomas.koeller@baslerweb.com>
On Wed, Sep 24, 2003 at 12:17:20AM +0200, Thomas Koeller wrote:
> Andrew,
>
> seems I was too quick to agree with you. A second look at the code
> reveals that the superblock _is_ actually freed, and so my original
> patch was almost correct. The only thing it missed was to zero out the
> data field in the mount table entry, so when the file system was
> mounted again, a stale superblock would have been used.
>
> The current code is obviously incorrect as it accesses memory that
> has been freed. The attached patch should finally do it the right
> way now.
>
> tk
Committed
Andrew