This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: JFFS2 crash fix
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ?yvind Harboe <oyvind dot harboe at zylin dot com>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-patches at sources dot redhat dot com
- Date: Mon, 2 Aug 2004 13:27:42 +0200
- Subject: Re: JFFS2 crash fix
- References: <1090240325.13401.8.camel@famine> <20040802110749.GC14248@lunn.ch> <1091445482.12336.65.camel@famine>
> > This is not a complete fix. jffs2_iget can return 0 when malloc
> > fails. For this to work correctly you need to modify jffs2_iget so
> > that it returns ERR_PTR(-ENOMEM) when out of memory.
>
> Is this a trivial fix, or will it have ramifications for the rest of the
> eCos JFFS2 code?
It looks trivial.
Please let us have a new patch when you have some spare time.
Andrew