This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: romfs_mount wrongly returns ENOENT under certain conditions.


On Thu, 2003-12-11 at 05:54, Andrew Lunn wrote:
> On Thu, Dec 11, 2003 at 02:23:07PM +0530, sandeep wrote:
> > Changelog :
> > * src/romfs.c (romfs_mount) : function wrongly returns ENOENT even if
> > fste->data isn't NULL.
> > 
> > Problem :
> >   if ( !disk ) {
> >       // If still no address, try the FSTAB entry data word
> > -- mte->data = fste->data;
> > ++ disk = (romfs_disk *)fste->data;
> >   }
> > 
> >   if ( !disk ) {
> >       // If still no address, give up...
> >       return ENOENT;
> >   }
> > 
> > you will wrongly return ENOENT if disk happened to be NULL at the time of first
> > if-check though fste->data isn't NULL. attached patch corrects it.
> 
> I've committed this patch,
>      Thanks
>         Andrew

There seems to have been a change in function here.  Isn't the value
of "mte->data" important?  If so, it's no longer being set.
    
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]